\r
#### additions\r
\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
- 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
}\r
\r
span.repositorySwatch {\r
- border-radius: 3px;\r
- padding: 2px 5px; \r
+ border-radius: 3px; \r
+ padding: 1px 4px 2px 4px; \r
color: #ffffff;\r
+ font-weight: bold;\r
+ vertical-align: center;\r
}\r
span.repositorySwatch a {\r
color: inherit;\r
if (!StringUtils.isEmpty(currGroupName) && (repoName.indexOf('/') > -1)) {\r
repoName = repoName.substring(currGroupName.length() + 1);\r
}\r
- \r
+ \r
// repository swatch\r
- Component swatch = new Label("repositorySwatch", " ").setEscapeModelStrings(false);\r
+ Component swatch;\r
+ if (entry.isBare){\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
+ }\r
WicketUtils.setCssBackground(swatch, entry.toString());\r
row.add(swatch);\r
swatch.setVisible(showSwatch);\r