[LON-CAPA-cvs] cvs: loncom /publisher lonpubdir.pm

raeburn raeburn at source.lon-capa.org
Tue Nov 28 17:28:05 EST 2023


raeburn		Tue Nov 28 22:28:05 2023 EDT

  Modified files:              
    /loncom/publisher	lonpubdir.pm 
  Log:
  - Include (Edit) link below filename for .txt, .css and .js files in directory
    listing in Authoring Space.
  
  
Index: loncom/publisher/lonpubdir.pm
diff -u loncom/publisher/lonpubdir.pm:1.181 loncom/publisher/lonpubdir.pm:1.182
--- loncom/publisher/lonpubdir.pm:1.181	Fri Nov 17 17:02:22 2023
+++ loncom/publisher/lonpubdir.pm	Tue Nov 28 22:28:05 2023
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Authoring Space Directory Lister
 #
-# $Id: lonpubdir.pm,v 1.181 2023/11/17 17:02:22 raeburn Exp $
+# $Id: lonpubdir.pm,v 1.182 2023/11/28 22:28:05 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -931,7 +931,7 @@
 
     my $editlink='';
     my $editlink2='';
-    if ($filename=~/\.(xml|html|htm|xhtml|xhtm|sty)$/) {
+    if ($filename=~/\.(xml|html|htm|xhtml|xhtm|sty|txt|css|js)$/) {
 	$editlink=' <br />(<a href="'.$linkdir.'/'.$filename.'?editmode=Edit&problemmode=edit">'.&mt('Edit').'</a>)';
     }
     if ($filename=~/$LONCAPA::assess_re/) {




More information about the LON-CAPA-cvs mailing list