From 6f881fb69406219a4528e4c69e8779a7db0ceb8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Tue, 15 Aug 2017 22:16:48 +0200 Subject: [PATCH] upd: indicate preferred name in support overview Change-Id: I2d75b7bcbe4cd4068f9c5d12514db945eeb54300 --- .../wpia/gigi/pages/admin/support/SupportUserDetailsForm.java | 1 + .../wpia/gigi/pages/admin/support/SupportUserDetailsForm.templ | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/club/wpia/gigi/pages/admin/support/SupportUserDetailsForm.java b/src/club/wpia/gigi/pages/admin/support/SupportUserDetailsForm.java index fe2ecb2b..969cbe62 100644 --- a/src/club/wpia/gigi/pages/admin/support/SupportUserDetailsForm.java +++ b/src/club/wpia/gigi/pages/admin/support/SupportUserDetailsForm.java @@ -84,6 +84,7 @@ public class SupportUserDetailsForm extends Form { @Override public void apply(Name t, Language l, Map vars) { vars.put("name", t); + vars.put("preferred", t.getOwner().getPreferredName() == t); vars.put("points", Integer.toString(t.getVerificationPoints())); } diff --git a/src/club/wpia/gigi/pages/admin/support/SupportUserDetailsForm.templ b/src/club/wpia/gigi/pages/admin/support/SupportUserDetailsForm.templ index 2206f3e5..bbd24a11 100644 --- a/src/club/wpia/gigi/pages/admin/support/SupportUserDetailsForm.templ +++ b/src/club/wpia/gigi/pages/admin/support/SupportUserDetailsForm.templ @@ -9,7 +9,7 @@ : - () + () -- 2.39.2