fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-02-28 11:28 am

[dw-free] More ID at the shop transfer confirmation

[commit: http://hg.dwscoalition.org/dw-free/rev/fc9f2c08fc02]

http://bugs.dwscoalition.org/show_bug.cgi?id=3305

Show the user's icon and name when transferring, for easier identification.

Patch by [personal profile] kareila.

Files modified:
  • views/shop/transferpoints.tt
  • views/shop/transferpoints.tt.text
--------------------------------------------------------------------------------
diff -r c6ee06c056d3 -r fc9f2c08fc02 views/shop/transferpoints.tt
--- a/views/shop/transferpoints.tt	Mon Feb 28 18:50:22 2011 +0800
+++ b/views/shop/transferpoints.tt	Mon Feb 28 19:28:41 2011 +0800
@@ -7,8 +7,16 @@
 
 [% ELSIF confirm %]
 
-    <p>[% IF anon; '.confirm.anon' | ml(points = points, user = foru.ljuser_display);
-          ELSE; '.confirm' | ml(points = points, user = foru.ljuser_display); END %]</p>
+    <p>[% IF foru.userpic;
+            foru.userpic.imgtag_lite;
+          END;
+
+          IF anon;
+            '.request.anon' | ml(points = points, user = foru.ljuser_display, name=foru.name_html);
+          ELSE;
+            '.request.user' | ml(points = points, user = foru.ljuser_display, name=foru.name_html);
+          END %]</p>
+    <p>[% '.confirm2' | ml %]</p>
 
     <form method='post'>
         [% dw.form_auth %]
diff -r c6ee06c056d3 -r fc9f2c08fc02 views/shop/transferpoints.tt.text
--- a/views/shop/transferpoints.tt.text	Mon Feb 28 18:50:22 2011 +0800
+++ b/views/shop/transferpoints.tt.text	Mon Feb 28 19:28:41 2011 +0800
@@ -16,9 +16,11 @@
 
 .buying.points.range=(1 to 5,000 points)
 
-.confirm=You have requested to transfer [[points]] [[?points|point|points]] to [[user]].  If you are sure you wish to do this, please click the button below.
+.confirm2=If you are sure you wish to do this, please click the button below.
 
-.confirm.anon=You have requested to anonymously transfer [[points]] [[?points|point|points]] to [[user]].  They will not know the points came from you.  If you are sure you wish to do this, please click the button below.
+.request.anon=You have requested to anonymously transfer [[points]] [[?points|point|points]] to [[name]] ([[user]]).  They will not know the points came from you.
+
+.request.user=You have requested to transfer [[points]] [[?points|point|points]] to [[name]] ([[user]]).
 
 .title=[[sitename]] Points Transfers
 
--------------------------------------------------------------------------------