diff options
author | James Moger <james.moger@gitblit.com> | 2013-12-11 14:52:45 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-12-11 14:52:45 -0500 |
commit | e55930b4a3c657eb71fad3aa3f2d276439fc4a8c (patch) | |
tree | a611f2525433ecc04933ee0285bc764e0f5f048e /src/main/java | |
parent | d6abe2e676702481ca6c3f720024bb14f1059030 (diff) | |
download | gitblit-e55930b4a3c657eb71fad3aa3f2d276439fc4a8c.tar.gz gitblit-e55930b4a3c657eb71fad3aa3f2d276439fc4a8c.zip |
Show mirror indicator on repository url panel
Change-Id: I5eb66500cc1ed47f97d4935d42ea4c3ca4cdba14
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java b/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java index 2049762b..bcd84b66 100644 --- a/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java +++ b/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java @@ -162,7 +162,10 @@ public class RepositoryUrlPanel extends BasePanel { }
// access restriction icon and tooltip
- if (app().runtime().isServingRepositories()) {
+ if (repository.isMirror) {
+ urlPanel.add(WicketUtils.newImage("accessRestrictionIcon", "mirror_16x16.png",
+ getString("gb.isMirror")));
+ } else if (app().runtime().isServingRepositories()) {
switch (repository.accessRestriction) {
case NONE:
urlPanel.add(WicketUtils.newClearPixel("accessRestrictionIcon").setVisible(false));
|