X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Fwot%2FMyPoints.java;h=1e61bebebe324bc39008222053443d55f441cad7;hb=ccccf71df5e25af791078b408eab30e162926868;hp=fc481437a9148cf0f743637dfd9d76673265cf8c;hpb=822443761eabc6166cddb123a1c99a95614fa11e;p=gigi.git diff --git a/src/org/cacert/gigi/pages/wot/MyPoints.java b/src/org/cacert/gigi/pages/wot/MyPoints.java index fc481437..1e61bebe 100644 --- a/src/org/cacert/gigi/pages/wot/MyPoints.java +++ b/src/org/cacert/gigi/pages/wot/MyPoints.java @@ -8,6 +8,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.cacert.gigi.GigiApiException; +import org.cacert.gigi.User; import org.cacert.gigi.output.AssurancesDisplay; import org.cacert.gigi.pages.Page; @@ -15,7 +16,9 @@ public class MyPoints extends Page { public static final String PATH = "/wot/mypoints"; - private AssurancesDisplay display = new AssurancesDisplay("asArr"); + private AssurancesDisplay myDisplay = new AssurancesDisplay("asArr", false); + + private AssurancesDisplay toOtherDisplay = new AssurancesDisplay("otherAsArr", true); public MyPoints(String title) { super(title); @@ -24,9 +27,12 @@ public class MyPoints extends Page { @Override public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { HashMap vars = new HashMap(); - vars.put("pointlist", display); + vars.put("pointlist", myDisplay); + vars.put("madelist", toOtherDisplay); try { - vars.put("asArr", getUser(req).getReceivedAssurances()); + User user = getUser(req); + vars.put("asArr", user.getReceivedAssurances()); + vars.put("otherAsArr", user.getMadeAssurances()); } catch (SQLException e) { new GigiApiException(e).format(resp.getWriter(), getLanguage(req)); return;