package SGN::View::Mason::Commands;
use strict;
use vars qw($m $c);
HTML::Mason::Component::FileBased->new(
'code' => sub {
use utf8; local $SGN::View::Mason::Commands::m = $HTML::Mason::Commands::m;
$m->debug_hook( $m->current_comp->path ) if ( HTML::Mason::Compiler::IN_PERL_DB() );

#line 1 "/home/production/cxgn/sgn/mason/homepage/news.mas"
$m->print( '
' );
#line 2 "/home/production/cxgn/sgn/mason/homepage/news.mas"


use strict;

use File::Spec;
use CXGN::Tools::File;

my $file = File::Spec->catfile($c->get_conf('homepage_files_dir'), 'news.txt');

my $contents = "News is not available at the moment.<br /><br />";

eval {
  $contents = CXGN::Tools::File::get_sections($file);
};


#line 19 "/home/production/cxgn/sgn/mason/homepage/news.mas"
$m->print( '
<!-- <div class="boxbgcolor1" style="margin:0px;">
<div class="boxheading">News</div>
<div class="boxcontent"> -->
  ' );
#line 23 "/home/production/cxgn/sgn/mason/homepage/news.mas"
$m->print(  $contents  );
#line 23 "/home/production/cxgn/sgn/mason/homepage/news.mas"
$m->print( '
<!-- </div> -->

<button class="btn btn-info btn-sm" onclick=\'location.href="/oldhighlights.pl"\'>See all news...</button>

<!--
<a href="oldhighlights.pl">See all news...</a>
-->
<!-- </div> -->
' );
;return;
},
'load_time' => 1763079528,

)
;