upd: show points sums on MyPoints page
authorFelix Dörre <felix@dogcraft.de>
Tue, 24 Nov 2015 20:47:28 +0000 (21:47 +0100)
committerFelix Dörre <felix@dogcraft.de>
Tue, 24 Nov 2015 20:47:28 +0000 (21:47 +0100)
src/org/cacert/gigi/pages/wot/MyPoints.java
src/org/cacert/gigi/pages/wot/MyPoints.templ

index 0801f5079e4396b6d46c0e6cc1280ed3eb115201..ba2bdf5af5da706d62f91b01dae4b52114741a15 100644 (file)
@@ -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);
     }
 
index 2344ae7b8a49d0102b4cf313ad6076b160224fbd..0129f69ae636cadfdd1a39ad5a4dd2c09754fef8 100644 (file)
@@ -1,3 +1,10 @@
 <?=$pointlist?>
 <h2><?=_Assurance Points You Issued?></h2>
-<?=$madelist?>
\ No newline at end of file
+<?=$madelist?>
+
+<?=_Assurance points?>: <?=$assP?><br/>
+<? if($expP) { ?>
+<?=_Experience points?>: <?=$expP?><br/>
+<?=_Max points to issue?>: <?=$maxP?><br/>
+
+<? } ?>