summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-02-03 23:32:41 -0500
committerJames Moger <james.moger@gitblit.com>2012-02-03 23:32:41 -0500
commit1c221573789f0673995cfec03e05af936a4ff3b3 (patch)
tree4ed0dafb861d1c7bd6c2e262e8c9f0053e4fd5a2 /src
parentb86562942b1d4a498e337b28201e0db308fa51c8 (diff)
downloadgitblit-1c221573789f0673995cfec03e05af936a4ff3b3.tar.gz
gitblit-1c221573789f0673995cfec03e05af936a4ff3b3.zip
Show a ! in the swatch of a repository with a working copy (issue 49)
Diffstat (limited to 'src')
-rw-r--r--src/com/gitblit/wicket/panels/RepositoriesPanel.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/com/gitblit/wicket/panels/RepositoriesPanel.java b/src/com/gitblit/wicket/panels/RepositoriesPanel.java
index 4007a979..4dcdab48 100644
--- a/src/com/gitblit/wicket/panels/RepositoriesPanel.java
+++ b/src/com/gitblit/wicket/panels/RepositoriesPanel.java
@@ -148,9 +148,15 @@ public class RepositoriesPanel extends BasePanel {
if (!StringUtils.isEmpty(currGroupName) && (repoName.indexOf('/') > -1)) {
repoName = repoName.substring(currGroupName.length() + 1);
}
-
+
// repository swatch
- Component swatch = new Label("repositorySwatch", "&nbsp;").setEscapeModelStrings(false);
+ Component swatch;
+ if (entry.isBare){
+ swatch = new Label("repositorySwatch", "&nbsp;").setEscapeModelStrings(false);
+ } else {
+ swatch = new Label("repositorySwatch", "!");
+ WicketUtils.setHtmlTooltip(swatch, "This repository has a working copy and can not receive pushes");
+ }
WicketUtils.setCssBackground(swatch, entry.toString());
row.add(swatch);
swatch.setVisible(showSwatch);