\r
- On the Repositories page show a bang *!* character in the color swatch of a repository with a working copy (issue 49) \r
Push requests to these repositories will be rejected.\r
+- On all non-bare Repository pages show *WORKING COPY* in the upper right corner (issue 49)\r
- New setting to prevent display/serving non-bare repositories \r
**New:** *git.onlyAccessBareRepositories = false*\r
- Allow relinking HEAD to a branch or a tag (Github/plm)\r
gb.federationRepositoryDescription = share this repository with other Gitblit servers\r
gb.hookScriptsDescription = run Groovy scripts on pushes to this Gitblit server\r
gb.reset = reset\r
-gb.pages = pages
\ No newline at end of file
+gb.pages = pages\r
+gb.workingCopy = WORKING COPY\r
+gb.workingCopyWarning = this repository has a working copy and can not receive pushes
\ No newline at end of file
\r
<!-- page header -->\r
<div class="page-header">\r
+ <div style="float:right;padding-top:5px;">\r
+ <span class="label important" wicket:id="workingCopy">[working copy]</span>\r
+ </div>\r
<h2><span wicket:id="repositoryName">[repository name]</span> <small><span wicket:id="pageName">[page name]</span></small></h2>\r
</div>\r
\r
add(new LinkPanel("repositoryName", null, StringUtils.stripDotGit(repositoryName),\r
SummaryPage.class, WicketUtils.newRepositoryParameter(repositoryName)));\r
add(new Label("pageName", pageName));\r
+ if (getRepositoryModel().isBare) {\r
+ add(new Label("workingCopy").setVisible(false));\r
+ } else {\r
+ Label lbl = new Label("workingCopy", getString("gb.workingCopy"));\r
+ WicketUtils.setHtmlTooltip(lbl, getString("gb.workingCopyWarning"));\r
+ add(lbl);\r
+ }\r
\r
super.setupPage(repositoryName, pageName);\r
}\r
swatch = new Label("repositorySwatch", " ").setEscapeModelStrings(false);\r
} else {\r
swatch = new Label("repositorySwatch", "!");\r
- WicketUtils.setHtmlTooltip(swatch, "This repository has a working copy and can not receive pushes");\r
+ WicketUtils.setHtmlTooltip(swatch, getString("gb.workingCopyWarning"));\r
}\r
WicketUtils.setCssBackground(swatch, entry.toString());\r
row.add(swatch);\r