diff options
author | James Moger <james.moger@gitblit.com> | 2013-06-17 16:41:47 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-06-17 16:41:47 -0400 |
commit | 80b000534188e4cef93475aefd3e6b658419ed26 (patch) | |
tree | 6d35de6bb379e08edbf294f77ce4234eefee8746 /src/main/java/com/gitblit/wicket/pages/OverviewPage.java | |
parent | 06116dd5f166ec2fff0531d21d6a291c9018703c (diff) | |
download | gitblit-80b000534188e4cef93475aefd3e6b658419ed26.tar.gz gitblit-80b000534188e4cef93475aefd3e6b658419ed26.zip |
Strike-through missing owners on summary/overview page
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/OverviewPage.java')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/OverviewPage.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/OverviewPage.java b/src/main/java/com/gitblit/wicket/pages/OverviewPage.java index 6fd38915..42d20c5b 100644 --- a/src/main/java/com/gitblit/wicket/pages/OverviewPage.java +++ b/src/main/java/com/gitblit/wicket/pages/OverviewPage.java @@ -78,12 +78,16 @@ public class OverviewPage extends RepositoryPage { private static final long serialVersionUID = 1L;
int counter = 0;
public void populateItem(final Item<String> item) {
- UserModel ownerModel = GitBlit.self().getUserModel(item.getModelObject());
+ String ownername = item.getModelObject();
+ UserModel ownerModel = GitBlit.self().getUserModel(ownername);
if (ownerModel != null) {
item.add(new LinkPanel("owner", null, ownerModel.getDisplayName(), UserPage.class,
WicketUtils.newUsernameParameter(ownerModel.username)).setRenderBodyOnly(true));
} else {
- item.add(new Label("owner").setVisible(false));
+ Label owner = new Label("owner", ownername);
+ WicketUtils.setCssStyle(owner, "text-decoration: line-through;");
+ WicketUtils.setHtmlTooltip(owner, MessageFormat.format(getString("gb.failedToFindAccount"), ownername));
+ item.add(owner);
}
counter++;
item.add(new Label("comma", ",").setVisible(counter < owners.size()));
|