--- loncom/interface/lonbulletin.pm 2006/10/23 18:48:47 1.42 +++ loncom/interface/lonbulletin.pm 2009/02/02 14:31:58 1.47 @@ -1,7 +1,7 @@ # The LearningOnline Network # Bulletin Board Handler # -# $Id: lonbulletin.pm,v 1.42 2006/10/23 18:48:47 albertel Exp $ +# $Id: lonbulletin.pm,v 1.47 2009/02/02 14:31:58 schafran Exp $ # # Copyright Michigan State University Board of Trustees # @@ -125,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, @@ -181,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').'

'); } elsif ($privileged and $target ne 'tex') { my $query_str = 'forceedit=edit'; @@ -237,7 +243,8 @@ sub handler { '

'.&mt('Upload a Photo').'

'. ''. ''. - '
'); + '
'. + ''); } foreach my $field (sort(keys(%syllabusfields))) { if (($syllabus{$field}) || ($allowed)) { @@ -266,7 +273,7 @@ sub handler { if ($allowed) { $r->print('
'); + ''); } } else { if ($target ne 'tex') { @@ -278,7 +285,7 @@ sub handler { $r->print( '
'.&mt('Topic').'
'); + ''); } } }