diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java | 16 | ||||
-rw-r--r-- | src/main/resources/sparkleshare_32x32.png | bin | 0 -> 1370 bytes |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java b/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java index 00c7cf7a..942f8d51 100644 --- a/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java +++ b/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java @@ -173,10 +173,20 @@ public class RepositoryUrlPanel extends BasePanel { getAccessRestrictions().get(repository.accessRestriction)));
break;
default:
- urlPanel.add(WicketUtils.newClearPixel("accessRestrictionIcon").setVisible(false));
+ if (repositoryUrls.size() == 1) {
+ // force left end cap to have some width
+ urlPanel.add(WicketUtils.newBlankIcon("accessRestrictionIcon"));
+ } else {
+ urlPanel.add(WicketUtils.newClearPixel("accessRestrictionIcon").setVisible(false));
+ }
}
} else {
- urlPanel.add(WicketUtils.newClearPixel("accessRestrictionIcon").setVisible(false));
+ if (repositoryUrls.size() == 1) {
+ // force left end cap to have some width
+ urlPanel.add(WicketUtils.newBlankIcon("accessRestrictionIcon"));
+ } else {
+ urlPanel.add(WicketUtils.newClearPixel("accessRestrictionIcon").setVisible(false));
+ }
}
urlPanel.add(new Label("primaryUrl", primaryUrl.url).setRenderBodyOnly(true));
@@ -316,7 +326,7 @@ public class RepositoryUrlPanel extends BasePanel { app.cloneUrl = url;
app.platforms = new String [] { "windows", "macintosh", "linux" };
app.productUrl = "http://sparkleshare.org";
- app.icon = "star_32x32.png";
+ app.icon = "sparkleshare_32x32.png";
app.isActive = true;
return app;
}
diff --git a/src/main/resources/sparkleshare_32x32.png b/src/main/resources/sparkleshare_32x32.png Binary files differnew file mode 100644 index 00000000..51afbe2c --- /dev/null +++ b/src/main/resources/sparkleshare_32x32.png |