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

bisitz bisitz@source.lon-capa.org
Thu, 14 May 2009 15:11:00 -0000


bisitz		Thu May 14 15:11:00 2009 EDT

  Modified files:              
    /loncom/publisher	lonretrieve.pm 
  Log:
  - Don't use <h1> for info text
  - Co-Author username display:
      - Consistent username:domain output
      - Now also display plainname and not only username
      - Use warning style (as it is done elsewhere, too, in these cases)
  
  
Index: loncom/publisher/lonretrieve.pm
diff -u loncom/publisher/lonretrieve.pm:1.39 loncom/publisher/lonretrieve.pm:1.40
--- loncom/publisher/lonretrieve.pm:1.39	Mon May 11 16:51:32 2009
+++ loncom/publisher/lonretrieve.pm	Thu May 14 15:11:00 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to retrieve an old version of a file
 #
-# $Id: lonretrieve.pm,v 1.39 2009/05/11 16:51:32 bisitz Exp $
+# $Id: lonretrieve.pm,v 1.40 2009/05/14 15:11:00 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -198,7 +198,7 @@
 		      &mt('This will only retrieve the resource. If you want to retrieve the metadata, you will need to do that separately.').
 		      '</span></p>');
 	}
-	$r->print('<input type="submit" value="'.&mt('Retrieve version').'" /></form>');
+	$r->print('<input type="submit" value="'.&mt('Retrieve Version').'" /></form>');
     } else {
 	$r->print('<p class="LC_warning">'.&mt('No previous versions published.').'</p>');
     }
@@ -323,16 +323,17 @@
 
   $r->print(&Apache::loncommon::start_page('Retrieve Published Resources'));
 
-  
-  $r->print('<h1>'
+  $r->print('<p>'
            .&mt('Retrieve previous versions of [_1]'
                    ,'<span class="LC_filename">'.$fn.'</span>')
-           .'</h1>');
+           .'</p>');
   
   if (($uname ne $env{'user.name'}) || ($udom ne $env{'user.domain'})) {
-          $r->print('<h3><span class="LC_diff_coauthor">'.&mt('Co-Author').': '.$uname.
-		    &mt(' at ').$udom.
-               '</span></h3>');
+          $r->print('<p><span class="LC_warning">'
+                   .&mt('Co-Author [_1]'
+                       ,&Apache::loncommon::plainname($uname,$udom)
+                       .' ('.$uname.':'.$udom.')')
+                   .'</span></p>');
   }