From: Felix Dörre Date: Tue, 24 Nov 2015 20:47:28 +0000 (+0100) Subject: upd: show points sums on MyPoints page X-Git-Url: https://code.wpia.club/?p=gigi.git;a=commitdiff_plain;h=3689dcd11a286c3c9204f96d9a6c3b33a968844a upd: show points sums on MyPoints page --- diff --git a/src/org/cacert/gigi/pages/wot/MyPoints.java b/src/org/cacert/gigi/pages/wot/MyPoints.java index 0801f507..ba2bdf5a 100644 --- a/src/org/cacert/gigi/pages/wot/MyPoints.java +++ b/src/org/cacert/gigi/pages/wot/MyPoints.java @@ -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); } diff --git a/src/org/cacert/gigi/pages/wot/MyPoints.templ b/src/org/cacert/gigi/pages/wot/MyPoints.templ index 2344ae7b..0129f69a 100644 --- a/src/org/cacert/gigi/pages/wot/MyPoints.templ +++ b/src/org/cacert/gigi/pages/wot/MyPoints.templ @@ -1,3 +1,10 @@

- \ No newline at end of file + + +:
+ +:
+:
+ +