--- loncom/interface/lonsyllabus.pm 2009/06/08 18:04:46 1.92 +++ loncom/interface/lonsyllabus.pm 2009/06/11 16:48:33 1.93 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.92 2009/06/08 18:04:46 bisitz Exp $ +# $Id: lonsyllabus.pm,v 1.93 2009/06/11 16:48:33 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -162,7 +162,6 @@ ENDSCRIPT text=>"Course syllabus"}); $r->print(&Apache::lonhtmlcommon::breadcrumbs()); } - } # ---------------------------------------------------------- Load syllabus info my %syllabus=&Apache::lonnet::dump('syllabus',$cdom,$cnum); @@ -230,6 +229,24 @@ 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')); + } elsif ($privileged) { + $functions.=&Apache::lonhtmlcommon::add_item_funclist( + '' + .&mt('Edit').''); + } + $functions.=&Apache::lonhtmlcommon::end_funclist(); + $r->print(&Apache::loncommon::head_subbox($functions)); + } + #---------------------Print External URL Syllabus Info if( ($allowed) && ($target ne 'tex') ) { my $protocol = $Apache::lonnet::protocol{$homeserver}; @@ -273,21 +290,6 @@ ENDSCRIPT :'') .'\\\\'); } -#--------Functions - if ($target ne 'tex') { - if( $allowed || $privileged) { - $r->print(&Apache::lontemplate::start_functionslist()); - if ($allowed) { - $r->print(&Apache::lontemplate::item_functionslist( - ''.&mt('Show Public View').'' - .&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView'))); - } elsif ($privileged) { - $r->print(&Apache::lontemplate::item_functionslist( - ''.&mt('Edit').'')); - } - $r->print(&Apache::lontemplate::end_functionslist()); - } - } #----------------------------Print Headtitle if ($target ne 'tex') { $r->print('

'.$courseenv{'description'}.'

');