Changed trials-in-common page to use a single database query to get analyses. Changed...
[sgn.git] / mason / homepage / publication_of_the_week.mas
blob8b702fbc1c065ecc45beaf16a7b030c76b2d09a0
1 <%doc>
3 =head1 NAME 
5 publication_of_the_week.mas - a mason module to display an html section with news, read from a file.
7 =head1 DESCRIPTION
9 The module does not require any parameters. If the file read does not succeed, an error message is displayed.
11 =head1 AUTHOR
13 Lukas Mueller <lam87@cornell.edu>
15 =cut
17 </%doc>
19 <%perl>
21 use strict;
22 use File::Spec;
23 use CXGN::Tools::File;
25 my $publications = "The publication of the week is currently unavailable.<br /><br />";
27 eval {
29  $publications = CXGN::Tools::File::get_sections(File::Spec->catfile($c->get_conf('homepage_files_dir'), "publications.txt"));
33 </%perl>
35 <!--
36 <div class="boxbgcolor1" style="margin:0px;">
37 <div class="boxheading">Featured publication</div>
38 <div class="boxcontent"><% $publications %>
39 <a href="oldpublications.pl">See all publications...</a></div>
40 -->
42 <h4>Featured Publication</h4>
43 <% $publications %>
44 <button class="btn btn-info btn-sm" onclick='location.href="/oldpublications.pl"'>See all publications...</button>