From: James Moger Date: Fri, 23 May 2014 15:39:06 +0000 (-0400) Subject: Do not directly link to the EmptyRepositoryPage X-Git-Tag: v1.6.0~51 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b5e11d843b83261376552dd6fc26d346c82402a4;p=gitblit.git Do not directly link to the EmptyRepositoryPage --- diff --git a/src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java b/src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java index d8e23bea..dd208e23 100644 --- a/src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java +++ b/src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java @@ -52,7 +52,6 @@ import com.gitblit.wicket.GitBlitWebSession; import com.gitblit.wicket.WicketUtils; import com.gitblit.wicket.pages.BasePage; import com.gitblit.wicket.pages.EditRepositoryPage; -import com.gitblit.wicket.pages.EmptyRepositoryPage; import com.gitblit.wicket.pages.ProjectPage; import com.gitblit.wicket.pages.RepositoriesPage; import com.gitblit.wicket.pages.SummaryPage; @@ -204,15 +203,7 @@ public class RepositoriesPanel extends BasePanel { swatch.setVisible(showSwatch); if (linksActive) { - Class linkPage; - if (entry.hasCommits) { - // repository has content - linkPage = SummaryPage.class; - } else { - // new/empty repository OR proposed repository - linkPage = EmptyRepositoryPage.class; - } - + Class linkPage = SummaryPage.class; PageParameters pp = WicketUtils.newRepositoryParameter(entry.name); row.add(new LinkPanel("repositoryName", "list", repoName, linkPage, pp)); row.add(new LinkPanel("repositoryDescription", "list", entry.description,