]> source.dussan.org Git - gitblit.git/commitdiff
Show since in settings table. Pack settings table.
authorJames Moger <james.moger@gitblit.com>
Tue, 25 Oct 2011 02:58:55 +0000 (22:58 -0400)
committerJames Moger <james.moger@gitblit.com>
Tue, 25 Oct 2011 02:58:55 +0000 (22:58 -0400)
src/com/gitblit/client/GitblitPanel.java
src/com/gitblit/client/SettingsTableModel.java
src/com/gitblit/wicket/GitBlitWebApp.properties

index 6772c3d8db1dd637b793b73f021d84559bdc87da..d67921ba376a0265369e95f95303639c5cd63639 100644 (file)
@@ -486,7 +486,7 @@ public class GitblitPanel extends JPanel implements CloseTabListener {
                gitblit.login();\r
 \r
                updateRepositoriesTable();\r
-               Utils.packColumns(repositoriesTable, 2);\r
+               Utils.packColumns(repositoriesTable, 5);\r
 \r
                if (gitblit.allowManagement()) {\r
                        updateUsersTable();\r
@@ -505,6 +505,7 @@ public class GitblitPanel extends JPanel implements CloseTabListener {
 \r
                if (gitblit.allowAdministration()) {\r
                        updateSettingsTable();\r
+                       Utils.packColumns(settingsTable, 5);\r
                } else {\r
                        // remove the settings tab\r
                        String settingsTitle = Translation.get("gb.settings");\r
index e6d2313583cb1516eeb9300c8130d5f0f5f6a5ab..f14eae4bd477674671ce9b385e089b8de037fcfc 100644 (file)
@@ -39,7 +39,7 @@ public class SettingsTableModel extends AbstractTableModel {
        List<String> keys;\r
 \r
        enum Columns {\r
-               Name, Value;\r
+               Name, Value, Since;\r
 \r
                @Override\r
                public String toString() {\r
@@ -81,6 +81,8 @@ public class SettingsTableModel extends AbstractTableModel {
                switch (col) {\r
                case Name:\r
                        return Translation.get("gb.name");\r
+               case Since:\r
+                       return Translation.get("gb.since");\r
                }\r
                return "";\r
        }\r
@@ -109,6 +111,8 @@ public class SettingsTableModel extends AbstractTableModel {
                        return key;\r
                case Value:\r
                        return setting;\r
+               case Since:\r
+                       return setting.since;\r
                }\r
                return null;\r
        }\r
index bbbd81cd0b70cd720d87ae7b7c1a52a690d7dab1..2052fb1216e911e5af5af84d972ddf8d475dc509 100644 (file)
@@ -165,4 +165,5 @@ gb.skipSummaryMetrics = skip summary metrics
 gb.skipSummaryMetricsDescription = do not calculate metrics on the summary page (reduces page load time)\r
 gb.accessLevel = access level\r
 gb.default = default\r
-gb.setDefault = set default
\ No newline at end of file
+gb.setDefault = set default\r
+gb.since = since
\ No newline at end of file