diff options
author | James Moger <james.moger@gitblit.com> | 2012-02-04 00:28:37 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-02-04 00:28:37 -0500 |
commit | ccab3a2abf1f4c3b61e6955afa50b03efdcc707c (patch) | |
tree | 0c5f62460a6db882ea8404c00412e1bc2c25cd14 /src/com/gitblit/wicket/pages/RepositoryPage.java | |
parent | 9c4725cba1e4e07c55061afb435d0d4228cf89ba (diff) | |
download | gitblit-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.java | 7 |
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);
}
|