From 5c0605d5665196b3726cc64bfd80b45ec963417b Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 23 May 2013 23:10:43 -0400 Subject: Support relative links in commitdiff page and polish css --- src/main/java/com/gitblit/wicket/pages/CommitDiffPage.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/main/java/com/gitblit/wicket/pages/CommitDiffPage.java') diff --git a/src/main/java/com/gitblit/wicket/pages/CommitDiffPage.java b/src/main/java/com/gitblit/wicket/pages/CommitDiffPage.java index eb1d5d82..f9c4e68b 100644 --- a/src/main/java/com/gitblit/wicket/pages/CommitDiffPage.java +++ b/src/main/java/com/gitblit/wicket/pages/CommitDiffPage.java @@ -136,15 +136,11 @@ public class CommitDiffPage extends RepositoryPage { submodulePath = submodule.gitblitPath; hasSubmodule = submodule.hasSubmodule; - item.add(new LinkPanel("pathName", "list", entry.path + " @ " + - getShortObjectId(submoduleId), TreePage.class, - WicketUtils - .newPathParameter(submodulePath, submoduleId, "")).setEnabled(hasSubmodule)); + // add relative link + item.add(new LinkPanel("pathName", "list", entry.path + " @ " + getShortObjectId(submoduleId), "#" + entry.path)); } else { - // blob - item.add(new LinkPanel("pathName", "list", entry.path, BlobPage.class, - WicketUtils - .newPathParameter(repositoryName, entry.commitId, entry.path))); + // add relative link + item.add(new LinkPanel("pathName", "list", entry.path, "#" + entry.path)); } // quick links -- cgit v1.2.3