isFrozen = new JCheckBox(Translation.get("gb.isFrozenDescription"),\r
anRepository.isFrozen);\r
\r
- maxActivityCommits = new JComboBox(new Integer [] { 0, 25, 50, 75, 100, 150, 250, 500 });\r
+ maxActivityCommits = new JComboBox(new Integer [] { -1, 0, 25, 50, 75, 100, 150, 250, 500 });\r
maxActivityCommits.setSelectedItem(anRepository.maxActivityCommits);\r
\r
-\r
mailingListsField = new JTextField(\r
ArrayUtils.isEmpty(anRepository.mailingLists) ? ""\r
: StringUtils.flattenStrings(anRepository.mailingLists,\r
\r
Map<String, Activity> activity = new HashMap<String, Activity>();\r
for (RepositoryModel model : models) {\r
+ if (model.maxActivityCommits == -1) {\r
+ // skip this repository\r
+ continue;\r
+ }\r
if (model.hasCommits && model.lastChange.after(thresholdDate)) {\r
if (model.isCollectingGarbage) {\r
continue;\r
gb.sslCertificateGeneratedRestart = Successfully generated new server SSL certificate for {0}.\nYou must restart Gitblit to use the new certificate.\n\nIf you are launching with the '--alias' parameter you will have to set that to ''--alias {0}''.\r
gb.validity = validity\r
gb.siteName = site name\r
-gb.siteNameDescription = short, descriptive name of your server
\ No newline at end of file
+gb.siteNameDescription = short, descriptive name of your server \r
+gb.excludeFromActivity = exclude from activity page
\ No newline at end of file
form.add(new CheckBox("showReadme"));\r
form.add(new CheckBox("skipSizeCalculation"));\r
form.add(new CheckBox("skipSummaryMetrics"));\r
- List<Integer> maxActivityCommits = Arrays.asList(0, 25, 50, 75, 100, 150, 200, 250, 500 );\r
+ List<Integer> maxActivityCommits = Arrays.asList(-1, 0, 25, 50, 75, 100, 150, 200, 250, 500 );\r
form.add(new DropDownChoice<Integer>("maxActivityCommits", maxActivityCommits, new MaxActivityCommitsRenderer()));\r
\r
mailingLists = new Model<String>(ArrayUtils.isEmpty(repositoryModel.mailingLists) ? ""\r
\r
@Override\r
public String getDisplayValue(Integer value) {\r
- if (value == 0) {\r
+ if (value == -1) {\r
+ return getString("gb.excludeFromActivity");\r
+ } else if (value == 0) {\r
return getString("gb.noMaximum");\r
} else {\r
return value + " " + getString("gb.commits");\r