From 87c3d714693b216cee9c31cdc5170715c56f541d Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Wed, 06 Apr 2011 09:27:14 -0400
Subject: [PATCH] Mostly working Diff presentation.

---
 src/com/gitblit/wicket/panels/TreeLinksPanel.java |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/com/gitblit/wicket/panels/TreeLinksPanel.java b/src/com/gitblit/wicket/panels/TreeLinksPanel.java
index 21da66c..af4bbb1 100644
--- a/src/com/gitblit/wicket/panels/TreeLinksPanel.java
+++ b/src/com/gitblit/wicket/panels/TreeLinksPanel.java
@@ -6,7 +6,6 @@
 
 import com.gitblit.wicket.LinkPanel;
 import com.gitblit.wicket.models.PathModel;
-import com.gitblit.wicket.pages.BlobPage;
 import com.gitblit.wicket.pages.TreePage;
 
 
@@ -16,14 +15,7 @@
 
 	public TreeLinksPanel(String id, String repositoryName, PathModel path) {
 		super(id);
-		if (path.isTree()) {
-			add(new LinkPanel("link", null, "tree", TreePage.class, new PageParameters("p=" + repositoryName + ",h=" + path.commitId + ",f=" + path.path)));
-			add(new Label("history", "history"));
-			add(new Label("raw", "").setVisible(false));
-		} else {
-			add(new LinkPanel("link", null, "blob", BlobPage.class, new PageParameters("p=" + repositoryName + ",h=" + path.commitId + ",f=" + path.path)));
-			add(new Label("history", "history"));
-			add(new Label("raw", "raw"));
-		}
+		add(new LinkPanel("link", null, "tree", TreePage.class, new PageParameters("p=" + repositoryName + ",h=" + path.commitId + ",f=" + path.path)));
+		add(new Label("history", "history"));
 	}
 }
\ No newline at end of file

--
Gitblit v1.9.1