From 9305b4be0977743f681bc086e07d8f3152a8938a Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Mon, 11 Nov 2013 22:21:36 +0100 Subject: [PATCH] Show account type column in teams panel. Add a new column to the team panel, showing the account type. --- src/main/java/com/gitblit/wicket/panels/TeamsPanel.html | 6 ++++-- src/main/java/com/gitblit/wicket/panels/TeamsPanel.java | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gitblit/wicket/panels/TeamsPanel.html b/src/main/java/com/gitblit/wicket/panels/TeamsPanel.html index ff689292..2cce7b18 100644 --- a/src/main/java/com/gitblit/wicket/panels/TeamsPanel.html +++ b/src/main/java/com/gitblit/wicket/panels/TeamsPanel.html @@ -15,16 +15,18 @@ [teams] + [type] [team members] [repositories] - +
[teamname]
+ [account type]
[members]
[repositories]
- + diff --git a/src/main/java/com/gitblit/wicket/panels/TeamsPanel.java b/src/main/java/com/gitblit/wicket/panels/TeamsPanel.java index c1e1a43d..7f3fd9a2 100644 --- a/src/main/java/com/gitblit/wicket/panels/TeamsPanel.java +++ b/src/main/java/com/gitblit/wicket/panels/TeamsPanel.java @@ -60,6 +60,7 @@ public class TeamsPanel extends BasePanel { EditTeamPage.class, WicketUtils.newTeamnameParameter(entry.name)); WicketUtils.setHtmlTooltip(editLink, getString("gb.edit") + " " + entry.name); item.add(editLink); + item.add(new Label("accountType", entry.accountType.name())); item.add(new Label("members", entry.users.size() > 0 ? ("" + entry.users.size()) : "")); item.add(new Label("repositories", -- 2.39.5