6 /homepage/what_is_sgn.mas - shows a "More about SGN" collapser that the user can open with a click to reveal more information about SGN.
10 takes a what parameter. Either 'textbox' or 'link'. Will result in different rendering.
25 <& /util/import_javascript.mas, classes=>["CXGN.Effects"] &>
29 use CXGN::Page::Widgets qw/collapser/;
31 my ($what_is_link, $what_is_content) = collapser({
33 linktext => '<span class="boxheading" style="border:0">About SGN</span>',
35 linkstyle => "font-size:0.86em;white-space:nowrap",
37 alt_href => "/about/index.pl",
38 content => CXGN::Tools::File::read_commented_file( $c->path_to('documents','what_is.txt') ),
43 % if ($what eq "textbox") {
45 <div class="boxbgcolor1">
46 <div class="boxheading"><% $what_is_link %></div>
48 <% $what_is_content %>
50 % } elsif($what eq "link") {
54 %} else { die "don't know what $what is." }