]> source.dussan.org Git - gitblit.git/commitdiff
Do not directly link to the EmptyRepositoryPage
authorJames Moger <james.moger@gitblit.com>
Fri, 23 May 2014 15:39:06 +0000 (11:39 -0400)
committerJames Moger <james.moger@gitblit.com>
Fri, 23 May 2014 15:39:06 +0000 (11:39 -0400)
src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java

index d8e23bea2f317bef7ae355bc74590ce70e57b657..dd208e232215d88a83e22f1aa3c8ae1656a79fcd 100644 (file)
@@ -52,7 +52,6 @@ import com.gitblit.wicket.GitBlitWebSession;
 import com.gitblit.wicket.WicketUtils;\r
 import com.gitblit.wicket.pages.BasePage;\r
 import com.gitblit.wicket.pages.EditRepositoryPage;\r
-import com.gitblit.wicket.pages.EmptyRepositoryPage;\r
 import com.gitblit.wicket.pages.ProjectPage;\r
 import com.gitblit.wicket.pages.RepositoriesPage;\r
 import com.gitblit.wicket.pages.SummaryPage;\r
@@ -204,15 +203,7 @@ public class RepositoriesPanel extends BasePanel {
                                swatch.setVisible(showSwatch);\r
 \r
                                if (linksActive) {\r
-                                       Class<? extends BasePage> linkPage;\r
-                                       if (entry.hasCommits) {\r
-                                               // repository has content\r
-                                               linkPage = SummaryPage.class;\r
-                                       } else {\r
-                                               // new/empty repository OR proposed repository\r
-                                               linkPage = EmptyRepositoryPage.class;\r
-                                       }\r
-\r
+                                       Class<? extends BasePage> linkPage = SummaryPage.class;\r
                                        PageParameters pp = WicketUtils.newRepositoryParameter(entry.name);\r
                                        row.add(new LinkPanel("repositoryName", "list", repoName, linkPage, pp));\r
                                        row.add(new LinkPanel("repositoryDescription", "list", entry.description,\r