[LON-CAPA-cvs] cvs: loncom /interface portfolio.pm

banghart lon-capa-cvs@mail.lon-capa.org
Sun, 06 Aug 2006 17:23:56 -0000


banghart		Sun Aug  6 13:23:56 2006 EDT

  Modified files:              
    /loncom/interface	portfolio.pm 
  Log:
  	Make show versions work in subdirectories.
  
  
Index: loncom/interface/portfolio.pm
diff -u loncom/interface/portfolio.pm:1.147 loncom/interface/portfolio.pm:1.148
--- loncom/interface/portfolio.pm:1.147	Sun Aug  6 12:48:44 2006
+++ loncom/interface/portfolio.pm	Sun Aug  6 13:23:56 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # portfolio browser
 #
-# $Id: portfolio.pm,v 1.147 2006/08/06 16:48:44 banghart Exp $
+# $Id: portfolio.pm,v 1.148 2006/08/06 17:23:56 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -250,9 +250,9 @@
     	    }
     	    if (exists($versioned{$filename})) {
     	        if ($show_versions) {
-                    $version_flag{$filename} = '<a href="portfolio"><img class="LC_icon" alt="'.&mt('opened folder').'" src="'.$iconpath.'folder_pointer_opened.gif" /></a>';
+                    $version_flag{$filename} = '<a href="portfolio?selectfile='.$filename.'&amp;continue=false&amp;currentpath='.$current_path.'"><img class="LC_icon" alt="'.&mt('opened folder').'" src="'.$iconpath.'folder_pointer_opened.gif" /></a>';
     	        } else {
-                    $version_flag{$filename} = '<a href="portfolio?showversions='.$filename.'"><img class="LC_icon" alt="'.&mt('closed folder').'" src="'.$iconpath.'folder_pointer_closed.gif" /></a>';
+                    $version_flag{$filename} = '<a href="portfolio?selectfile='.$filename.'&amp;continue=false&amp;currentpath='.$current_path.'&amp;showversions='.$filename.'"><img class="LC_icon" alt="'.&mt('closed folder').'" src="'.$iconpath.'folder_pointer_closed.gif" /></a>';
                 }
     	    } else {
     	        $version_flag{$filename} = '&nbsp;';