Merge pull request #4106 from solgenomics/topic/wishlist
[sgn.git] / mason / feature / types / default.mas
blob9033d4d6f854358c7d7cbe7c21d710bdb05dd1ad
1 <%args>
2     $feature
3     $featurelocs
4     $blast_url => undef
5     $xrefs     => []
6 </%args>
8 <%once>
9     use SGN::View::Feature qw/ type_name /;
10 </%once>
12 <& /feature/page_title.mas, feature => $feature &>
14 <&| /page/info_section.mas,
15     title       => type_name($feature,'caps').' details',
16     subtitle    => $feature->is_obsolete ? 'WARNING: This feature is obsolete, new data is available.' : '',
17     collapsible => 1,
19    <& /feature/feature_data.mas,
20       feature     => $feature,
21       featurelocs => $featurelocs,
22     &>
23     <& /feature/properties.mas,
24        feature => $feature,
25     &>
26 </&>
28 <&| /page/info_section.mas,
29      title         => type_name($feature,'caps').' sequence',
30      collapsible   => 1,
31      collapsed     => 0,
32      hide_if_empty => 1,
33  &>
34     <& /feature/residues.mas,
35             feature   => $feature,
36             blast_url => $blast_url,
37     &>
38 </&>
40 <&| /page/info_section.mas,
41    title => 'Related features',
42    collapsible => 1,
43    hide_if_empty => 1,
46   <& /feature/related_features.mas,
47       feature   => $feature,
48       omit_columns => ['organism'],
49   &>
51 </&>
53 <&| /page/info_section.mas,
54      title         => 'Region sequence(s)',
55      subtitle      => "reference sequence underlying each location of this feature",
56      collapsible   => 1,
57      collapsed     => 0,
58      hide_if_empty => 1,
59  &>
60     <& /feature/region_sequence.mas,
61             feature   => $feature,
62             blast_url => $blast_url,
63     &>
64 </&>
66 <&| /page/info_section.mas,
67      title => 'Related views',
68      empty_message => 'None found',
69      collapsible => 1,
70      is_empty => ! scalar @$xrefs,
71  &>
72      <& /sitefeatures/mixed/xref_set/link.mas,
73         xrefs => $xrefs,
74         empty_message => '',
75       &>
76 </&>