]> source.dussan.org Git - gitblit.git/commitdiff
Tweaked manager indicators to match site layout
authorJames Moger <james.moger@gitblit.com>
Fri, 21 Oct 2011 21:34:56 +0000 (17:34 -0400)
committerJames Moger <james.moger@gitblit.com>
Fri, 21 Oct 2011 21:34:56 +0000 (17:34 -0400)
src/com/gitblit/client/IndicatorsRenderer.java

index e8be0ad2e2ee6ca16cedae5c70262a8f2e3e197c..3622db7aa64deea45c5f13c26d94238ccb1d67fa 100644 (file)
@@ -16,7 +16,7 @@
 package com.gitblit.client;\r
 \r
 import java.awt.Component;\r
-import java.awt.GridLayout;\r
+import java.awt.FlowLayout;\r
 import java.io.Serializable;\r
 \r
 import javax.swing.ImageIcon;\r
@@ -55,7 +55,7 @@ public class IndicatorsRenderer extends JPanel implements TableCellRenderer, Ser
        private final ImageIcon federatedIcon;\r
 \r
        public IndicatorsRenderer() {\r
-               super(new GridLayout(1, 0, 1, 0));\r
+               super(new FlowLayout(FlowLayout.RIGHT, 1, 0));\r
                blankIcon = new ImageIcon(getClass().getResource("/blank.png"));\r
                pushIcon = new ImageIcon(getClass().getResource("/lock_go_16x16.png"));\r
                pullIcon = new ImageIcon(getClass().getResource("/lock_pull_16x16.png"));\r
@@ -81,29 +81,21 @@ public class IndicatorsRenderer extends JPanel implements TableCellRenderer, Ser
                                JLabel icon = new JLabel(tixIcon);\r
                                tooltip.append(Translation.get("gb.tickets")).append("<br/>");\r
                                add(icon);\r
-                       } else {\r
-                               add(new JLabel(blankIcon));\r
                        }\r
                        if (model.useDocs) {\r
                                JLabel icon = new JLabel(doxIcon);\r
                                tooltip.append(Translation.get("gb.docs")).append("<br/>");\r
                                add(icon);\r
-                       } else {\r
-                               add(new JLabel(blankIcon));\r
                        }\r
                        if (model.isFrozen) {\r
                                JLabel icon = new JLabel(frozenIcon);\r
                                tooltip.append(Translation.get("gb.isFrozen")).append("<br/>");\r
                                add(icon);\r
-                       } else {\r
-                               add(new JLabel(blankIcon));\r
                        }\r
                        if (model.isFederated) {\r
                                JLabel icon = new JLabel(federatedIcon);\r
                                tooltip.append(Translation.get("gb.isFederated")).append("<br/>");\r
                                add(icon);\r
-                       } else {\r
-                               add(new JLabel(blankIcon));\r
                        }\r
 \r
                        switch (model.accessRestriction) {\r