refactor site xref link rendering, use on new feature page, update other uses of...
[sgn.git] / mason / feature / dhandler
blob39e67fc88639029b4a2ef7a4db8a0489ec3c2e82
1 <%args>
2     $feature
3     $blast_url => undef
4     $children  => undef
5     $parents   => undef
6     $xrefs     => []
7 </%args>
9 <%once>
10     use SGN::View::Feature qw/get_reference/;
11 </%once>
13 <& /page/page_title.mas, title => 'Feature Viewer: '. $feature->id &>
15 <& /util/import_javascript.mas,
16     classes => [qw(Text.Markup CXGN.Effects CXGN.Phenome.Locus MochiKit.DOM)]
18 <%perl>
19     my $organism = $feature->organism;
20     my $species  = $organism->species;
21     my $reference = get_reference($feature);
22 </%perl>
24 <& /feature/feature_data.mas,
25     feature => $feature,
26     species => $species
29 <& /feature/related_features.mas,
30     children  => $children,
31     parents   => $parents,
32     feature   => $feature,
35 <& /feature/properties.mas,
36     feature => $feature,
39 <& /feature/sequence.mas,
40         feature   => $feature,
41         blast_url => $blast_url,
44 <&| /page/info_section.mas,
45      title => 'Related views',
46  &>
47      <& /sitefeatures/mixed/xref_set/link.mas,
48         xrefs => $xrefs,
49       &>
50 </&>