[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
raeburn
raeburn at source.lon-capa.org
Wed Nov 9 09:09:49 EST 2016
raeburn Wed Nov 9 14:09:49 2016 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
- For ad hoc custor roles in a course, assigned to Domain Helpdesk,
prepend "Helpdesk" to custom role name, in "Switch role" drop-down list.
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.459 loncom/interface/lonmenu.pm:1.460
--- loncom/interface/lonmenu.pm:1.459 Mon Oct 31 19:49:00 2016
+++ loncom/interface/lonmenu.pm Wed Nov 9 14:09:49 2016
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.459 2016/10/31 19:49:00 raeburn Exp $
+# $Id: lonmenu.pm,v 1.460 2016/11/09 14:09:49 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2241,8 +2241,14 @@
$include = 1;
}
if ($include) {
+ my $rolename;
+ if ($role =~ m{^cr/$cdom/$cdom\-domainconfig/(\w+)(?:/\w+|$)}) {
+ $rolename = &mt('Helpdesk [_1]',$1);
+ } else {
+ $rolename = &Apache::lonnet::plaintext($role);
+ }
push(@submenu,['javascript:adhocRole('."'$role'".')',
- &Apache::lonnet::plaintext($role)]);
+ $rolename]);
}
}
}
More information about the LON-CAPA-cvs
mailing list