diff options
author | James Moger <james.moger@gitblit.com> | 2014-05-23 11:39:06 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-05-23 11:39:06 -0400 |
commit | b5e11d843b83261376552dd6fc26d346c82402a4 (patch) | |
tree | 24dcb678c68a6f822fbe9d492e53c4ab59d0f3f5 /src | |
parent | b11496744d05c842df3f64c14ea4b7b927262f5c (diff) | |
download | gitblit-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.java | 11 |
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,
|