version 1.107, 2010/03/03 21:33:15
|
version 1.109, 2010/04/14 14:15:15
|
Line 282 ENDSCRIPT
|
Line 282 ENDSCRIPT
|
#----------Print last update |
#----------Print last update |
my $lastmod=$syllabus{'uploaded.lastmodified'}; |
my $lastmod=$syllabus{'uploaded.lastmodified'}; |
$lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never')); |
$lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never')); |
my $who = &Apache::loncommon::aboutmewrapper( |
my $who; |
&Apache::loncommon::plainname($syllabus{'uploaded.name'}, |
if (($env{'user.name'} ne 'public') && ($env{'user.domain'} ne 'public')) { |
$syllabus{'uploaded.domain'}),$syllabus{'uploaded.name'}, |
$who = &Apache::loncommon::aboutmewrapper( |
$syllabus{'uploaded.domain'}); |
&Apache::loncommon::plainname($syllabus{'uploaded.name'}, |
|
$syllabus{'uploaded.domain'}),$syllabus{'uploaded.name'}, |
|
$syllabus{'uploaded.domain'}); |
|
} else { |
|
# Public user? |
|
# Only display name of user, but no link to personal information page |
|
$who = &Apache::loncommon::plainname( |
|
$syllabus{'uploaded.name'}, |
|
$syllabus{'uploaded.domain'}); |
|
} |
|
|
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$r->print('<div class="LC_info">'.&mt('Last updated').': '. |
$r->print('<div class="LC_info">'.&mt('Last updated').': '. |
$lastmod . ' '. |
$lastmod . ' '. |
Line 356 ENDSCRIPT
|
Line 366 ENDSCRIPT
|
&Apache::lonannounce::readcalendar($cdom.'_'.$cnum)); |
&Apache::lonannounce::readcalendar($cdom.'_'.$cnum)); |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
if ($allowed) { |
if ($allowed) { |
&Apache::lontemplate::print_start_template($r,'RSS Feeds and Blogs','LC_Box'); |
&Apache::lontemplate::print_start_template($r,&mt('RSS Feeds and Blogs'),'LC_Box'); |
$r->print(&Apache::lonrss::advertisefeeds($cnum,$cdom,$forceedit)); |
$r->print(&Apache::lonrss::advertisefeeds($cnum,$cdom,$forceedit)); |
my $editurl= &Apache::lonnet::absolute_url().'/adm/'.$cdom.'/'.$cnum.'/_rss.html'; |
my $editurl= &Apache::lonnet::absolute_url().'/adm/'.$cdom.'/'.$cnum.'/_rss.html'; |
$r->print( '<a href="'.$editurl.'">'.&mt('New RSS Feed or Blog').'</a>'); |
$r->print( '<a href="'.$editurl.'">'.&mt('New RSS Feed or Blog').'</a>'); |
&Apache::lontemplate::print_end_template($r); |
&Apache::lontemplate::print_end_template($r); |
} elsif (&Apache::lonrss::advertisefeeds($cnum,$cdom) ne '') { |
} elsif (&Apache::lonrss::advertisefeeds($cnum,$cdom) ne '') { |
&Apache::lontemplate::print_start_template($r,'RSS Feeds and Blogs','LC_Box'); |
&Apache::lontemplate::print_start_template($r,&mt('RSS Feeds and Blogs'),'LC_Box'); |
$r->print(&Apache::lonrss::advertisefeeds($cnum,$cdom,$forceedit)); |
$r->print(&Apache::lonrss::advertisefeeds($cnum,$cdom,$forceedit)); |
&Apache::lontemplate::print_end_template($r); |
&Apache::lontemplate::print_end_template($r); |
} |
} |