summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/pages/RepositoryPage.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-02-04 00:28:37 -0500
committerJames Moger <james.moger@gitblit.com>2012-02-04 00:28:37 -0500
commitccab3a2abf1f4c3b61e6955afa50b03efdcc707c (patch)
tree0c5f62460a6db882ea8404c00412e1bc2c25cd14 /src/com/gitblit/wicket/pages/RepositoryPage.java
parent9c4725cba1e4e07c55061afb435d0d4228cf89ba (diff)
downloadgitblit-ccab3a2abf1f4c3b61e6955afa50b03efdcc707c.tar.gz
gitblit-ccab3a2abf1f4c3b61e6955afa50b03efdcc707c.zip
Indicate WORKING COPY on repository pages (issue 49)
Diffstat (limited to 'src/com/gitblit/wicket/pages/RepositoryPage.java')
-rw-r--r--src/com/gitblit/wicket/pages/RepositoryPage.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/gitblit/wicket/pages/RepositoryPage.java b/src/com/gitblit/wicket/pages/RepositoryPage.java
index 5f544012..77918ea4 100644
--- a/src/com/gitblit/wicket/pages/RepositoryPage.java
+++ b/src/com/gitblit/wicket/pages/RepositoryPage.java
@@ -153,6 +153,13 @@ public abstract class RepositoryPage extends BasePage {
add(new LinkPanel("repositoryName", null, StringUtils.stripDotGit(repositoryName),
SummaryPage.class, WicketUtils.newRepositoryParameter(repositoryName)));
add(new Label("pageName", pageName));
+ if (getRepositoryModel().isBare) {
+ add(new Label("workingCopy").setVisible(false));
+ } else {
+ Label lbl = new Label("workingCopy", getString("gb.workingCopy"));
+ WicketUtils.setHtmlTooltip(lbl, getString("gb.workingCopyWarning"));
+ add(lbl);
+ }
super.setupPage(repositoryName, pageName);
}