James Moger
2011-10-24 4c837a1de9f7706c7bfb0cbb14a7082f916826ae
Show since in settings table. Pack settings table.
3 files modified
12 ■■■■ changed files
src/com/gitblit/client/GitblitPanel.java 3 ●●●● patch | view | raw | blame | history
src/com/gitblit/client/SettingsTableModel.java 6 ●●●● patch | view | raw | blame | history
src/com/gitblit/wicket/GitBlitWebApp.properties 3 ●●●● patch | view | raw | blame | history
src/com/gitblit/client/GitblitPanel.java
@@ -486,7 +486,7 @@
        gitblit.login();
        updateRepositoriesTable();
        Utils.packColumns(repositoriesTable, 2);
        Utils.packColumns(repositoriesTable, 5);
        if (gitblit.allowManagement()) {
            updateUsersTable();
@@ -505,6 +505,7 @@
        if (gitblit.allowAdministration()) {
            updateSettingsTable();
            Utils.packColumns(settingsTable, 5);
        } else {
            // remove the settings tab
            String settingsTitle = Translation.get("gb.settings");
src/com/gitblit/client/SettingsTableModel.java
@@ -39,7 +39,7 @@
    List<String> keys;
    enum Columns {
        Name, Value;
        Name, Value, Since;
        @Override
        public String toString() {
@@ -81,6 +81,8 @@
        switch (col) {
        case Name:
            return Translation.get("gb.name");
        case Since:
            return Translation.get("gb.since");
        }
        return "";
    }
@@ -109,6 +111,8 @@
            return key;
        case Value:
            return setting;
        case Since:
            return setting.since;
        }
        return null;
    }
src/com/gitblit/wicket/GitBlitWebApp.properties
@@ -165,4 +165,5 @@
gb.skipSummaryMetricsDescription = do not calculate metrics on the summary page (reduces page load time)
gb.accessLevel = access level
gb.default = default
gb.setDefault = set default
gb.setDefault = set default
gb.since = since