diff options
author | Florian Zschocke <florian.zschocke@cycos.com> | 2013-11-11 22:21:36 +0100 |
---|---|---|
committer | Florian Zschocke <florian.zschocke@cycos.com> | 2014-09-07 22:44:40 +0200 |
commit | 9305b4be0977743f681bc086e07d8f3152a8938a (patch) | |
tree | 7be8fbf117b735850e58ab5074ce730e3259c404 /src/main | |
parent | f7174e6984c08a153d1ba198c4bffe68c5afd873 (diff) | |
download | gitblit-9305b4be0977743f681bc086e07d8f3152a8938a.tar.gz gitblit-9305b4be0977743f681bc086e07d8f3152a8938a.zip |
Show account type column in teams panel.
Add a new column to the team panel, showing the account type.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/gitblit/wicket/panels/TeamsPanel.html | 6 | ||||
-rw-r--r-- | 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 @@ <img style="vertical-align: middle; border: 1px solid #888; background-color: white;" src="users_16x16.png"/>
<wicket:message key="gb.teams">[teams]</wicket:message>
</th>
+ <th class="hidden-phone" style="width:140px;"><wicket:message key="gb.type">[type]</wicket:message></th>
<th class="hidden-phone" style="width:140px;"><wicket:message key="gb.teamMembers">[team members]</wicket:message></th>
<th class="hidden-phone" style="width:100px;"><wicket:message key="gb.repositories">[repositories]</wicket:message></th>
<th style="width:80px;" class="right"></th>
</tr>
- <tbody>
+ <tbody>
<tr wicket:id="teamRow">
<td class="left" ><div class="list" wicket:id="teamname">[teamname]</div></td>
+ <td class="hidden-phone left" ><span style="font-size: 0.8em;" wicket:id="accountType">[account type]</span></td>
<td class="hidden-phone left" ><div class="list" wicket:id="members">[members]</div></td>
<td class="hidden-phone left" ><div class="list" wicket:id="repositories">[repositories]</div></td>
- <td class="rightAlign"><span wicket:id="teamLinks"></span></td>
+ <td class="rightAlign"><span wicket:id="teamLinks"></span></td>
</tr>
</tbody>
</table>
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",
|