Merge pull request #5205 from solgenomics/topic/generic_trial_upload
[sgn.git] / mason / genomes / default / data_set.mas
blobfe887cb2ba9ac112c2651f88932e1f4343633591
1 <%args>
2   $a
3 </%args>
5             <&| /page/info_section.mas,
6                 is_subsection => 1,
7                 title         => $a->{name},
8                 subtitle      => $a->{date} && $a->{date}->ymd('-'),
9              &>
10                 <&| /page/info_table.mas, border => 0,
11                  &>
12                    Description
13                    -----
14                    <% $a->{description} |h %>
15                    -----
16 %                  if( $a->{annotation_sets} && @{$a->{annotation_sets}} ) {
17                      Annotated by
18                      -----
19                      <% join ' ', map $_->sample_name, @{$a->{annotation_sets}} | h %>
20                      -----
21 %                  }
22 %                  if( $a->{files} && @{$a->{files}} ) {
23                      Files
24                      -----
25                      <dl>
26 %                    for my $link (@{$a->{files}}) {
27                          <dt><a href="<% $link->{url} |h%>"><% $link->{text} |h%></a></dt>
28                          <dd><% $link->{description} |h%> </dd>
29 %                    }
30                      </dl>
32                      ----
33 %                  }
34                 </&>
36             </&>