]> source.dussan.org Git - gitblit.git/commitdiff
Replaced three history placeholder labels with real links.
authorJames Moger <james.moger@gitblit.com>
Sat, 16 Apr 2011 20:47:14 +0000 (16:47 -0400)
committerJames Moger <james.moger@gitblit.com>
Sat, 16 Apr 2011 20:47:14 +0000 (16:47 -0400)
src/com/gitblit/wicket/pages/BlobDiffPage.html
src/com/gitblit/wicket/pages/BlobDiffPage.java
src/com/gitblit/wicket/pages/BlobPage.html
src/com/gitblit/wicket/pages/BlobPage.java
src/com/gitblit/wicket/pages/TreePage.html
src/com/gitblit/wicket/pages/TreePage.java

index 2267b37d3154d27e79e85a5242e2372d1329e58b..a20b24cad24d1eb2f63f4e71007068382fe0cf1d 100644 (file)
@@ -12,7 +12,7 @@
        \r
        <!-- blob nav links --> \r
        <div class="page_nav2">\r
-               <span wicket:id="blameLink">[blame link]</span> | <span wicket:id="historyLink">[history link]</span> | <a wicket:id="patchLink"><wicket:message key="gb.patch"></wicket:message></a> | <a wicket:id="commitLink"><wicket:message key="gb.commit"></wicket:message></a> | <a wicket:id="commitDiffLink"><wicket:message key="gb.commitdiff"></wicket:message></a>\r
+               <span wicket:id="blameLink">[blame link]</span> | <a wicket:id="historyLink"><wicket:message key="gb.history"></wicket:message></a> | <a wicket:id="patchLink"><wicket:message key="gb.patch"></wicket:message></a> | <a wicket:id="commitLink"><wicket:message key="gb.commit"></wicket:message></a> | <a wicket:id="commitDiffLink"><wicket:message key="gb.commitdiff"></wicket:message></a>\r
        </div>  \r
        \r
        <!-- shortlog header -->\r
index 21127bc46c95165479ecb75b4f04efd67f8f29f1..de49b3cf88f154ea17b1ab76eb99dfd1df14fc4c 100644 (file)
@@ -28,7 +28,7 @@ public class BlobDiffPage extends RepositoryPage {
 \r
                // diff page links\r
                add(new Label("blameLink", getString("gb.blame")));\r
-               add(new Label("historyLink", getString("gb.history")));\r
+               add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class, WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));\r
 \r
                add(new LinkPanel("shortlog", "title", commit.getShortMessage(), CommitPage.class, newCommitParameter()));\r
 \r
index 393470a0f18f1777aa9cf77593aff8e906862de0..2ca76e3b7e0bad4bbb5e80315ab12a7d59bfa0b8 100644 (file)
@@ -21,7 +21,7 @@
        \r
                <!-- blob nav links --> \r
                <div class="page_nav2">\r
-                       <span wicket:id="blameLink">[blame link]</span> | <span wicket:id="historyLink">[history link]</span> | <a wicket:id="rawLink"><wicket:message key="gb.raw"></wicket:message></a> | <a wicket:id="headLink"><wicket:message key="gb.head"></wicket:message></a>\r
+                       <span wicket:id="blameLink">[blame link]</span> | <a wicket:id="historyLink"><wicket:message key="gb.history"></wicket:message></a> | <a wicket:id="rawLink"><wicket:message key="gb.raw"></wicket:message></a> | <a wicket:id="headLink"><wicket:message key="gb.head"></wicket:message></a>\r
                </div>  \r
        \r
                <!-- shortlog header -->\r
index 51eadf33bea53f1dc209bae77966faf7731078ac..e535199adcca1e384b3ac84e46064e62119decdd 100644 (file)
@@ -31,7 +31,7 @@ public class BlobPage extends RepositoryPage {
 \r
                // blob page links\r
                add(new Label("blameLink", getString("gb.blame")));\r
-               add(new Label("historyLink", getString("gb.history")));\r
+               add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class, WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));\r
                add(new BookmarkablePageLink<Void>("rawLink", RawPage.class, WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));\r
                add(new BookmarkablePageLink<Void>("headLink", BlobPage.class, WicketUtils.newPathParameter(repositoryName, Constants.HEAD, blobPath)));\r
 \r
index add03ebd11bae45f7967a090f91cac562e1077d7..f72792fc4742cf16c38812478aa657386f37c0a0 100644 (file)
@@ -12,7 +12,7 @@
        \r
        <!-- blob nav links --> \r
        <div class="page_nav2">\r
-               <span wicket:id="historyLink">[history link]</span> | <a wicket:id="headLink"><wicket:message key="gb.head"></wicket:message></a>\r
+               <a wicket:id="historyLink"><wicket:message key="gb.history"></wicket:message></a> | <a wicket:id="headLink"><wicket:message key="gb.head"></wicket:message></a>\r
        </div>  \r
        \r
        <!-- shortlog header -->\r
index 2ab164da3dc291e9a5a09af43dd4f03223bfc812..2177761e28cfd0a98147a157a521e69a6b9f98cc 100644 (file)
@@ -33,7 +33,7 @@ public class TreePage extends RepositoryPage {
                List<PathModel> paths = JGitUtils.getFilesInPath(r, path, commit);\r
 \r
                // tree page links\r
-               add(new Label("historyLink", getString("gb.history")));\r
+               add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class, WicketUtils.newPathParameter(repositoryName, commit.getName(), path)));\r
                add(new BookmarkablePageLink<Void>("headLink", TreePage.class, WicketUtils.newPathParameter(repositoryName, Constants.HEAD, path)));\r
 \r
                add(new LinkPanel("shortlog", "title", commit.getShortMessage(), CommitPage.class, newCommitParameter()));\r