--- loncom/interface/lonbulletin.pm 2006/07/17 21:59:24 1.37 +++ loncom/interface/lonbulletin.pm 2009/04/04 21:47:40 1.48 @@ -1,7 +1,7 @@ # The LearningOnline Network # Bulletin Board Handler # -# $Id: lonbulletin.pm,v 1.37 2006/07/17 21:59:24 raeburn Exp $ +# $Id: lonbulletin.pm,v 1.48 2009/04/04 21:47:40 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -36,6 +36,7 @@ use Apache::lontexconvert; use Apache::lonfeedback; use Apache::lonlocal; use Apache::lonhtmlcommon; +use HTML::Entities(); use LONCAPA; sub handler { @@ -124,8 +125,14 @@ sub handler { # --------------------------------------- There is such a user, get environment if ($target ne 'tex') { + my $course_or_group; + if($group eq ''){ + $course_or_group="Course"; + }else{ + $course_or_group="Group"; + } my $start_page = - &Apache::loncommon::start_page("Bulletin Board/Discussion",undef, + &Apache::loncommon::start_page("$course_or_group Discussion Board",undef, {'function' => $forcestudent, 'add_entries' => \%addentries, 'domain' => $dom, @@ -180,7 +187,7 @@ sub handler { } $r->print( '
'.
-&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes','Help with filling in text boxes').'
'.&mt('Show Student View').''.
+&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes')).'
'.&mt('Show Student View').''.
&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView').'