From e55930b4a3c657eb71fad3aa3f2d276439fc4a8c Mon Sep 17 00:00:00 2001 From: James Moger Date: Wed, 11 Dec 2013 14:52:45 -0500 Subject: [PATCH] Show mirror indicator on repository url panel Change-Id: I5eb66500cc1ed47f97d4935d42ea4c3ca4cdba14 --- .../java/com/gitblit/wicket/panels/RepositoryUrlPanel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); -- 2.39.5