From: James Moger Date: Tue, 25 Oct 2011 02:58:55 +0000 (-0400) Subject: Show since in settings table. Pack settings table. X-Git-Tag: v0.7.0~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4c837a1de9f7706c7bfb0cbb14a7082f916826ae;p=gitblit.git Show since in settings table. Pack settings table. --- diff --git a/src/com/gitblit/client/GitblitPanel.java b/src/com/gitblit/client/GitblitPanel.java index 6772c3d8..d67921ba 100644 --- a/src/com/gitblit/client/GitblitPanel.java +++ b/src/com/gitblit/client/GitblitPanel.java @@ -486,7 +486,7 @@ public class GitblitPanel extends JPanel implements CloseTabListener { gitblit.login(); updateRepositoriesTable(); - Utils.packColumns(repositoriesTable, 2); + Utils.packColumns(repositoriesTable, 5); if (gitblit.allowManagement()) { updateUsersTable(); @@ -505,6 +505,7 @@ public class GitblitPanel extends JPanel implements CloseTabListener { if (gitblit.allowAdministration()) { updateSettingsTable(); + Utils.packColumns(settingsTable, 5); } else { // remove the settings tab String settingsTitle = Translation.get("gb.settings"); diff --git a/src/com/gitblit/client/SettingsTableModel.java b/src/com/gitblit/client/SettingsTableModel.java index e6d23135..f14eae4b 100644 --- a/src/com/gitblit/client/SettingsTableModel.java +++ b/src/com/gitblit/client/SettingsTableModel.java @@ -39,7 +39,7 @@ public class SettingsTableModel extends AbstractTableModel { List keys; enum Columns { - Name, Value; + Name, Value, Since; @Override public String toString() { @@ -81,6 +81,8 @@ public class SettingsTableModel extends AbstractTableModel { switch (col) { case Name: return Translation.get("gb.name"); + case Since: + return Translation.get("gb.since"); } return ""; } @@ -109,6 +111,8 @@ public class SettingsTableModel extends AbstractTableModel { return key; case Value: return setting; + case Since: + return setting.since; } return null; } diff --git a/src/com/gitblit/wicket/GitBlitWebApp.properties b/src/com/gitblit/wicket/GitBlitWebApp.properties index bbbd81cd..2052fb12 100644 --- a/src/com/gitblit/wicket/GitBlitWebApp.properties +++ b/src/com/gitblit/wicket/GitBlitWebApp.properties @@ -165,4 +165,5 @@ gb.skipSummaryMetrics = skip summary metrics 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 \ No newline at end of file +gb.setDefault = set default +gb.since = since \ No newline at end of file