summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-05-23 11:39:06 -0400
committerJames Moger <james.moger@gitblit.com>2014-05-23 11:39:06 -0400
commitb5e11d843b83261376552dd6fc26d346c82402a4 (patch)
tree24dcb678c68a6f822fbe9d492e53c4ab59d0f3f5 /src
parentb11496744d05c842df3f64c14ea4b7b927262f5c (diff)
downloadgitblit-b5e11d843b83261376552dd6fc26d346c82402a4.tar.gz
gitblit-b5e11d843b83261376552dd6fc26d346c82402a4.zip
Do not directly link to the EmptyRepositoryPage
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java11
1 files changed, 1 insertions, 10 deletions
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<? extends BasePage> linkPage;
- if (entry.hasCommits) {
- // repository has content
- linkPage = SummaryPage.class;
- } else {
- // new/empty repository OR proposed repository
- linkPage = EmptyRepositoryPage.class;
- }
-
+ Class<? extends BasePage> 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,