James Moger
2012-06-15 01774948d84794d1d9c216f9a6859d7f150815d5
src/com/gitblit/wicket/pages/RootPage.java
@@ -297,8 +297,9 @@
      Set<Integer> choicesSet = new HashSet<Integer>(Arrays.asList(daysBack, 14, 28, 60, 90, 180));
      List<Integer> choices = new ArrayList<Integer>(choicesSet);
      Collections.sort(choices);
      String lastDaysPattern = getString("gb.lastNDays");
      for (Integer db : choices) {
         String txt = "last " + db + (db.intValue() > 1 ? " days" : "day");
         String txt = MessageFormat.format(lastDaysPattern, db);
         items.add(new DropDownMenuItem(txt, "db", db.toString(), params));
      }
      items.add(new DropDownMenuItem());