[LON-CAPA-cvs] cvs: loncom /interface lonsyllabus.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Fri, 27 Jul 2007 00:21:40 -0000
albertel Thu Jul 26 20:21:40 2007 EDT
Modified files:
/loncom/interface lonsyllabus.pm
Log:
- only show the 'by' if there is a last editor
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.60 loncom/interface/lonsyllabus.pm:1.61
--- loncom/interface/lonsyllabus.pm:1.60 Thu Jul 26 20:17:17 2007
+++ loncom/interface/lonsyllabus.pm Thu Jul 26 20:21:39 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Syllabus
#
-# $Id: lonsyllabus.pm,v 1.60 2007/07/27 00:17:17 albertel Exp $
+# $Id: lonsyllabus.pm,v 1.61 2007/07/27 00:21:39 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -110,7 +110,6 @@
# ----------------------------------------------------------------- Make header
if ($target ne 'tex') {
my $rss_link = &Apache::lonrss::rss_link($cnum,$cdom);
-
my $start_page =
&Apache::loncommon::start_page("Syllabus", $rss_link,
{'function' => $forcestudent,
@@ -260,12 +259,16 @@
$syllabus{'uploaded.domain'});
if ($target ne 'tex') {
$r->print('<table><tr><td>'.&mt('Last updated').':</td><td>'.
- $lastmod.'</td><td>'.&mt('by').' '.$who.
+ $lastmod.'</td><td>'.
+ ($who ? &mt('by').' '.$who
+ : '' ).
'</td></tr></table><p>');
} else {
- $r->print('\\\\ '.&mt('Last updated').': '.$lastmod.' '.&mt('by').'\\\\ '.
- &Apache::loncommon::plainname($syllabus{'uploaded.name'},
- $syllabus{'uploaded.domain'}).'\\\\');
+ $r->print('\\\\ '.&mt('Last updated').': '.$lastmod.' '.
+ ($who? &mt('by').'\\\\ '.
+ &Apache::loncommon::plainname($syllabus{'uploaded.name'},$syllabus{'uploaded.domain'})
+ :'')
+ .'\\\\');
}
if ($allowed) {
$r->print('<form method="post">'.