]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/wot/MyPoints.java
upd: move translated string closer to translation method
[gigi.git] / src / org / cacert / gigi / pages / wot / MyPoints.java
index 0801f5079e4396b6d46c0e6cc1280ed3eb115201..69f5d7e6f9a3667eff71ffb508e29f1758042652 100644 (file)
@@ -19,8 +19,8 @@ public class MyPoints extends Page {
 
     private AssurancesDisplay toOtherDisplay = new AssurancesDisplay("otherAsArr", true);
 
-    public MyPoints(String title) {
-        super(title);
+    public MyPoints() {
+        super("My Points");
     }
 
     @Override
@@ -31,6 +31,11 @@ public class MyPoints extends Page {
         User user = getUser(req);
         vars.put("asArr", user.getReceivedAssurances());
         vars.put("otherAsArr", user.getMadeAssurances());
+        vars.put("assP", user.getAssurancePoints());
+        if (user.canAssure()) {
+            vars.put("expP", user.getExperiencePoints());
+            vars.put("maxP", user.getMaxAssurePoints());
+        }
         getDefaultTemplate().output(resp.getWriter(), getLanguage(req), vars);
     }