summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/pages/SummaryPage.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-05-02 21:44:07 -0400
committerJames Moger <james.moger@gitblit.com>2013-05-02 21:44:18 -0400
commitb7502e5c0666154c7378469fd769b3aeb242e949 (patch)
treeb364c36e8d196b4d46ce989ac9776f000e106db9 /src/main/java/com/gitblit/wicket/pages/SummaryPage.java
parent264ba908941414ea5e750524b2472f7ad0670563 (diff)
downloadgitblit-b7502e5c0666154c7378469fd769b3aeb242e949.tar.gz
gitblit-b7502e5c0666154c7378469fd769b3aeb242e949.zip
Added SparkleShare invite url panel
This will probably be merged into a refined, single multi-protocol url panel.
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/SummaryPage.java')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/SummaryPage.java10
1 files changed, 10 insertions, 0 deletions
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<String> urls = new ListDataProvider<String>(repositoryUrls);
DataView<String> otherUrlsView = new DataView<String>("otherUrls", urls) {
private static final long serialVersionUID = 1L;