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
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
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