summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/pages/OverviewPage.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-06-17 16:41:47 -0400
committerJames Moger <james.moger@gitblit.com>2013-06-17 16:41:47 -0400
commit80b000534188e4cef93475aefd3e6b658419ed26 (patch)
tree6d35de6bb379e08edbf294f77ce4234eefee8746 /src/main/java/com/gitblit/wicket/pages/OverviewPage.java
parent06116dd5f166ec2fff0531d21d6a291c9018703c (diff)
downloadgitblit-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.java8
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()));