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

bisitz lon-capa-cvs-allow@mail.lon-capa.org
Wed, 02 Jul 2008 16:08:21 -0000


bisitz		Wed Jul  2 12:08:21 2008 EDT

  Modified files:              
    /loncom/interface	loncreateuser.pm 
  Log:
  Link "Modify this user: ..."
      - Optimized &mt() call (excluded html from translation)
      - Added actual username and domain (avoids conflicts with different useraccounts but same name)
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.245 loncom/interface/loncreateuser.pm:1.246
--- loncom/interface/loncreateuser.pm:1.245	Fri Jun 27 12:31:16 2008
+++ loncom/interface/loncreateuser.pm	Wed Jul  2 12:08:21 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.245 2008/06/27 16:31:16 raeburn Exp $
+# $Id: loncreateuser.pm,v 1.246 2008/07/02 16:08:21 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2069,7 +2069,10 @@
         if ($env{'form.popup'}) {
             $r->print('<p><a href="javascript:window.close()">'.&mt('Close window').'</a></p>');
         } else {
-            $r->print('<p><a href="javascript:backPage(document.userupdate,'."'$env{'form.prevphase'}','modify'".')">'.&mt('Modify this user: <span class="LC_cusr_emph">([_1])</span>',$userinfo).'</a>'.('&nbsp;'x5).'<a href="javascript:backPage(document.userupdate)">'.&mt('Create/Modify Another User').'</a></p>');
+            $r->print('<p><a href="javascript:backPage(document.userupdate,'."'$env{'form.prevphase'}','modify'".')">'
+                     .&mt('Modify this user: [_1]','<span class="LC_cusr_emph">'.$env{'form.ccuname'}.':'.$env{'form.ccdomain'}.' ('.$userinfo.')</span>').'</a>'
+                     .('&nbsp;'x5).'<a href="javascript:backPage(document.userupdate)">'
+                     .&mt('Create/Modify Another User').'</a></p>');
         }
     }
     $r->print(&Apache::loncommon::end_page());