From: James Moger Date: Wed, 28 Nov 2012 12:44:22 +0000 (-0500) Subject: Revert "Eliminated redundant "view" links (issue 168)" X-Git-Tag: v1.2.0~67 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f16b1c4be237dd3953ef39d29088cc1ed0248b2b;p=gitblit.git Revert "Eliminated redundant "view" links (issue 168)" This reverts commit 5ad03d053fc3154b09c551530a790b921bc462e5. --- diff --git a/src/com/gitblit/wicket/panels/HistoryPanel.html b/src/com/gitblit/wicket/panels/HistoryPanel.html index 3da731ff..2fe6f050 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 short message]
[commit refs]
[commit hash] +
[commit short message]
[commit refs]
[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 2ad09438..838f103e 100644 --- a/src/com/gitblit/wicket/panels/HistoryPanel.java +++ b/src/com/gitblit/wicket/panels/HistoryPanel.java @@ -180,6 +180,8 @@ 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 3c3da745..f6c2327e 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 0a56b315..6d06e7b8 100644 --- a/src/com/gitblit/wicket/panels/LogPanel.java +++ b/src/com/gitblit/wicket/panels/LogPanel.java @@ -135,6 +135,8 @@ 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));