James Moger
2011-05-26 2a7306a1d92522569a8bb6e5a7c0bcdd5cf4cfaa
src/com/gitblit/wicket/panels/CommitLegendPanel.java
@@ -38,8 +38,9 @@
   public CommitLegendPanel(String id, List<PathChangeModel> paths) {
      super(id);
      final Map<ChangeType, AtomicInteger> stats = JGitUtils.getChangedPathsStats(paths);
      ListDataProvider<ChangeType> legendDp = new ListDataProvider<ChangeType>(new ArrayList<ChangeType>(stats.keySet()));
      final Map<ChangeType, AtomicInteger> stats = JGitUtils.getChangedPathsStats(paths);
      ListDataProvider<ChangeType> legendDp = new ListDataProvider<ChangeType>(
            new ArrayList<ChangeType>(stats.keySet()));
      DataView<ChangeType> legendsView = new DataView<ChangeType>("legend", legendDp) {
         private static final long serialVersionUID = 1L;
@@ -50,8 +51,8 @@
            WicketUtils.setChangeTypeCssClass(changeType, entry);
            item.add(changeType);
            int count = stats.get(entry).intValue();
            String description  = "";
            switch(entry) {
            String description = "";
            switch (entry) {
            case ADD:
               description = MessageFormat.format(getString("gb.filesAdded"), count);
               break;
@@ -67,7 +68,7 @@
            case RENAME:
               description = MessageFormat.format(getString("gb.filesRenamed"), count);
               break;
            }
            }
            item.add(new Label("description", description));
         }
      };