James Moger
2012-05-09 b94965e87929c6b4e42f9a2078dc0d910cc2637d
src/com/gitblit/wicket/panels/RepositoriesPanel.java
@@ -148,10 +148,16 @@
            if (!StringUtils.isEmpty(currGroupName) && (repoName.indexOf('/') > -1)) {
               repoName = repoName.substring(currGroupName.length() + 1);
            }
            // repository swatch
            Component swatch = new Label("repositorySwatch", " ").setEscapeModelStrings(false);
            WicketUtils.setCssBackground(swatch, entry.name);
            Component swatch;
            if (entry.isBare){
               swatch = new Label("repositorySwatch", " ").setEscapeModelStrings(false);
            } else {
               swatch = new Label("repositorySwatch", "!");
               WicketUtils.setHtmlTooltip(swatch, getString("gb.workingCopyWarning"));
            }
            WicketUtils.setCssBackground(swatch, entry.toString());
            row.add(swatch);
            swatch.setVisible(showSwatch);