From e4e68298c2f55c93dc2464e26a24b119a649e642 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Fri, 11 Jan 2013 23:53:32 -0500 Subject: [PATCH] Show indicators for Sparkleshared repositories --- src/com/gitblit/client/IndicatorsRenderer.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/com/gitblit/client/IndicatorsRenderer.java b/src/com/gitblit/client/IndicatorsRenderer.java index 59ce6dd..44b39d0 100644 --- a/src/com/gitblit/client/IndicatorsRenderer.java +++ b/src/com/gitblit/client/IndicatorsRenderer.java @@ -55,6 +55,8 @@ private final ImageIcon federatedIcon; private final ImageIcon forkIcon; + + private final ImageIcon sparkleshareIcon; public IndicatorsRenderer() { super(new FlowLayout(FlowLayout.RIGHT, 1, 0)); @@ -67,6 +69,7 @@ frozenIcon = new ImageIcon(getClass().getResource("/cold_16x16.png")); federatedIcon = new ImageIcon(getClass().getResource("/federated_16x16.png")); forkIcon = new ImageIcon(getClass().getResource("/commit_divide_16x16.png")); + sparkleshareIcon = new ImageIcon(getClass().getResource("/star_16x16.png")); } @Override @@ -80,6 +83,11 @@ if (value instanceof RepositoryModel) { StringBuilder tooltip = new StringBuilder(); RepositoryModel model = (RepositoryModel) value; + if (model.isSparkleshared()) { + JLabel icon = new JLabel(sparkleshareIcon); + tooltip.append(Translation.get("gb.isSparkleshared")).append("<br/>"); + add(icon); + } if (model.isFork()) { JLabel icon = new JLabel(forkIcon); tooltip.append(Translation.get("gb.isFork")).append("<br/>"); -- Gitblit v1.9.1