From b7502e5c0666154c7378469fd769b3aeb242e949 Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 2 May 2013 21:44:07 -0400 Subject: Added SparkleShare invite url panel This will probably be merged into a refined, single multi-protocol url panel. --- src/main/java/com/gitblit/wicket/pages/SummaryPage.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main/java/com/gitblit/wicket/pages/SummaryPage.java') diff --git a/src/main/java/com/gitblit/wicket/pages/SummaryPage.java b/src/main/java/com/gitblit/wicket/pages/SummaryPage.java index 863974b3..f092a387 100644 --- a/src/main/java/com/gitblit/wicket/pages/SummaryPage.java +++ b/src/main/java/com/gitblit/wicket/pages/SummaryPage.java @@ -60,6 +60,7 @@ import com.gitblit.wicket.panels.BranchesPanel; import com.gitblit.wicket.panels.DetailedRepositoryUrlPanel; import com.gitblit.wicket.panels.LinkPanel; import com.gitblit.wicket.panels.LogPanel; +import com.gitblit.wicket.panels.SparkleShareInvitePanel; import com.gitblit.wicket.panels.TagsPanel; public class SummaryPage extends RepositoryPage { @@ -167,6 +168,15 @@ public class SummaryPage extends RepositoryPage { } add(gitDaemonUrlPanel); + String sparkleshareUrl = getSparkleShareInviteUrl(model); + if (StringUtils.isEmpty(sparkleshareUrl)) { + add(new Label("repositorySparkleShareInviteUrl").setVisible(false)); + } else { + Component sparklesharePanel = new SparkleShareInvitePanel("repositorySparkleShareInviteUrl", getLocalizer(), this, sparkleshareUrl, accessPermission); + WicketUtils.setCssStyle(sparklesharePanel, "padding-top: 10px;"); + add(sparklesharePanel); + } + ListDataProvider urls = new ListDataProvider(repositoryUrls); DataView otherUrlsView = new DataView("otherUrls", urls) { private static final long serialVersionUID = 1L; -- cgit v1.2.3