[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm

raeburn raeburn at source.lon-capa.org
Thu Jul 13 15:07:27 EDT 2023


raeburn		Thu Jul 13 19:07:27 2023 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  - Breadcrumbs text when displaying/editing resource in Course Authoring Space.
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.471 loncom/xml/londefdef.pm:1.472
--- loncom/xml/londefdef.pm:1.471	Sat Mar 25 22:11:11 2023
+++ loncom/xml/londefdef.pm	Thu Jul 13 19:07:27 2023
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module
 #
-# $Id: londefdef.pm,v 1.471 2023/03/25 22:11:11 raeburn Exp $
+# $Id: londefdef.pm,v 1.472 2023/07/13 19:07:27 raeburn Exp $
 #
 #
 # Copyright Michigan State University Board of Trustees
@@ -591,9 +591,18 @@
     &Apache::lonhtmlcommon::clear_breadcrumbs();
     if ($env{'request.state'} eq 'construct') {
         my $url=&Apache::lonnet::hreflocation('',$env{'request.filename'});
+        my $text = 'Authoring Space';
+        my $href = &Apache::loncommon::authorspace($url);
+        if ($env{'request.course.id'}) {
+            my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'};
+            my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};
+            if ($href eq "/priv/$cdom/$cnum/") {
+                $text = 'Course Authoring Space';
+            }
+        }
         &Apache::lonhtmlcommon::add_breadcrumb({
-            'text'  => 'Authoring Space',
-            'href'  => &Apache::loncommon::authorspace($url),
+            'text'  => $text,
+            'href'  => $href,
         });
         &Apache::lonhtmlcommon::add_breadcrumb({
             'text'  => 'HTML Editor',




More information about the LON-CAPA-cvs mailing list