--- loncom/interface/lonsyllabus.pm 2009/06/11 16:48:33 1.93 +++ loncom/interface/lonsyllabus.pm 2009/09/02 12:39:26 1.94 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.93 2009/06/11 16:48:33 bisitz Exp $ +# $Id: lonsyllabus.pm,v 1.94 2009/09/02 12:39:26 droeschl Exp $ # # Copyright Michigan State University Board of Trustees # @@ -230,24 +230,26 @@ ENDSCRIPT } #--------Functions -if( $allowed || $privileged) { - my $functions=&Apache::lonhtmlcommon::start_funclist(); - if ($allowed) { - $functions.=&Apache::lonhtmlcommon::add_item_funclist( - '' - .&mt('Show Public View').'' - .&Apache::loncommon::help_open_topic( - 'Uploaded_Templates_PublicView')); + if( ($allowed || $privileged) && $target ne 'tex') { + my $functions=&Apache::lonhtmlcommon::start_funclist(); + + if ($allowed) { + $functions.=&Apache::lonhtmlcommon::add_item_funclist( + '' + .&mt('Show Public View').'' + .&Apache::loncommon::help_open_topic( + 'Uploaded_Templates_PublicView')); } elsif ($privileged) { $functions.=&Apache::lonhtmlcommon::add_item_funclist( - '' - .&mt('Edit').''); + '' + .&mt('Edit').''); } + $functions.=&Apache::lonhtmlcommon::end_funclist(); $r->print(&Apache::loncommon::head_subbox($functions)); } -#---------------------Print External URL Syllabus Info +#---------------------Print External URL Syllabus Info and Help Text if( ($allowed) && ($target ne 'tex') ) { my $protocol = $Apache::lonnet::protocol{$homeserver}; $protocol = 'http' if ($protocol ne 'https'); @@ -261,14 +263,12 @@ if( $allowed || $privileged) { ,'','') .'

' ); + #-Print Help Text + $r->print(&Apache::loncommon::help_open_topic( + 'Uploaded_Templates_TextBoxes', + &mt('Help with filling in text boxes'))); } -#-Print Help Text - if ($target ne 'tex') { - if ($allowed) { - $r->print(&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes'))); - } - } #----------Print last update my $lastmod=$syllabus{'uploaded.lastmodified'}; $lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never'));