From 5ad03d053fc3154b09c551530a790b921bc462e5 Mon Sep 17 00:00:00 2001 From: James Moger Date: Tue, 27 Nov 2012 18:00:56 -0500 Subject: [PATCH] Eliminated redundant "view" links (issue 168) --- src/com/gitblit/wicket/panels/HistoryPanel.html | 6 +++--- src/com/gitblit/wicket/panels/HistoryPanel.java | 2 -- src/com/gitblit/wicket/panels/LogPanel.html | 4 ++-- src/com/gitblit/wicket/panels/LogPanel.java | 2 -- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/com/gitblit/wicket/panels/HistoryPanel.html b/src/com/gitblit/wicket/panels/HistoryPanel.html index 2fe6f050..3da731ff 100644 --- a/src/com/gitblit/wicket/panels/HistoryPanel.html +++ b/src/com/gitblit/wicket/panels/HistoryPanel.html @@ -19,8 +19,8 @@ [commit date] [commit author] - [commit hash]
[commit short message]
[commit refs]
+ [commit hash] [history links] @@ -32,14 +32,14 @@ - | + - | | + | diff --git a/src/com/gitblit/wicket/panels/HistoryPanel.java b/src/com/gitblit/wicket/panels/HistoryPanel.java index 838f103e..2ad09438 100644 --- a/src/com/gitblit/wicket/panels/HistoryPanel.java +++ b/src/com/gitblit/wicket/panels/HistoryPanel.java @@ -180,8 +180,6 @@ public class HistoryPanel extends BasePanel { item.add(links); } else { Fragment links = new Fragment("historyLinks", "blobLinks", this); - links.add(new BookmarkablePageLink("view", BlobPage.class, WicketUtils - .newPathParameter(repositoryName, entry.getName(), path))); links.add(new BookmarkablePageLink("commitdiff", CommitDiffPage.class, WicketUtils.newObjectParameter(repositoryName, entry.getName()))); links.add(new BookmarkablePageLink("difftocurrent", BlobDiffPage.class, diff --git a/src/com/gitblit/wicket/panels/LogPanel.html b/src/com/gitblit/wicket/panels/LogPanel.html index f6c2327e..3c3da745 100644 --- a/src/com/gitblit/wicket/panels/LogPanel.html +++ b/src/com/gitblit/wicket/panels/LogPanel.html @@ -14,12 +14,12 @@ [commit date] [commit author] - [commit hash]
[commit short message]
[commit refs]
+ [commit hash] - | | + | diff --git a/src/com/gitblit/wicket/panels/LogPanel.java b/src/com/gitblit/wicket/panels/LogPanel.java index 6d06e7b8..0a56b315 100644 --- a/src/com/gitblit/wicket/panels/LogPanel.java +++ b/src/com/gitblit/wicket/panels/LogPanel.java @@ -135,8 +135,6 @@ public class LogPanel extends BasePanel { item.add(new RefsPanel("commitRefs", repositoryName, entry, allRefs)); - item.add(new BookmarkablePageLink("view", CommitPage.class, WicketUtils - .newObjectParameter(repositoryName, entry.getName()))); item.add(new BookmarkablePageLink("diff", CommitDiffPage.class, WicketUtils .newObjectParameter(repositoryName, entry.getName())).setEnabled(entry .getParentCount() > 0)); -- 2.39.5