--- loncom/interface/lonbulletin.pm 2013/09/17 15:04:30 1.67
+++ loncom/interface/lonbulletin.pm 2025/01/28 19:49:20 1.70
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Bulletin Board Handler
#
-# $Id: lonbulletin.pm,v 1.67 2013/09/17 15:04:30 raeburn Exp $
+# $Id: lonbulletin.pm,v 1.70 2025/01/28 19:49:20 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -37,6 +37,8 @@ use Apache::lonfeedback;
use Apache::lonhtmlgateway;
use Apache::lonlocal;
use Apache::lonhtmlcommon;
+use Apache::longroup;
+use Apache::lonnavmaps;
use HTML::Entities();
use LONCAPA;
@@ -237,7 +239,8 @@ sub handler {
$r->print($titletext);
$r->print("
");
&Apache::lontemplate::print_textarea_template($r, $syllabus{'aaa_title'},
- 'aaa_title', Apache::lontemplate->RICH_TEXT_ALWAYS_OFF);
+ 'aaa_title', $syllabusfields{'aaa_title'},
+ Apache::lontemplate->RICH_TEXT_ALWAYS_OFF);
&Apache::lontemplate::print_saveall_template($r);
$r->print("
");
&Apache::lontemplate::print_end_template($r);
@@ -314,16 +317,31 @@ sub groupboard_breadcrumbs {
text=>"Groups",
title=>"View course groups"});
}
+ my $view_permission =
+ &Apache::lonnet::allowed('vcg',$env{'request.course.id'}.($env{'request.course.sec'}?'/'.$env{'request.course.sec'}:''));
+ my $navmap=Apache::lonnavmaps::navmap->new();
+ my $grouppagelink = &Apache::longroup::get_group_link($cdom,$cnum,$group,$navmap,$view_permission,$refarg);
+ if ($grouppagelink) {
+ push(@{$brcrum},
+ {href=>$grouppagelink,
+ text=>&mt('Group').": $description",
+ title=>&mt("Go to group's home page"),
+ no_mt=>1,},
+ );
+ } else {
+ push(@{$brcrum},
+ {text=>&mt('Group').": $description",
+ no_mt=>1,}
+ );
+ }
push(@{$brcrum},
- {href=>"/adm/$cdom/$cnum/$group/smppg?$refarg",
- text=>"$ucgpterm: $description",
- title=>"Go to group's home page"},
{href=>"/adm/groupboards?group=$group&$refarg",
text=>"Discussion Boards",
title=>"Display group discussion boards"},
{href=>"$boardurl",
text=>"$boardtitle",
- title=>"$boardtitle"},
+ title=>"$boardtitle",
+ no_mt=>1},
);
return $brcrum;
}