]> source.dussan.org Git - gitblit.git/commitdiff
Add raw link to commit, commitdiff, and compare pages (issue-319)
authorJames Moger <james.moger@gitblit.com>
Wed, 16 Oct 2013 12:43:46 +0000 (08:43 -0400)
committerJames Moger <james.moger@gitblit.com>
Wed, 16 Oct 2013 12:43:56 +0000 (08:43 -0400)
Change-Id: Ifc878cb59fe66674e6dfdc6d233fa26be1f4d605

releases.moxie
src/main/java/com/gitblit/wicket/pages/CommitDiffPage.html
src/main/java/com/gitblit/wicket/pages/CommitDiffPage.java
src/main/java/com/gitblit/wicket/pages/CommitPage.html
src/main/java/com/gitblit/wicket/pages/CommitPage.java
src/main/java/com/gitblit/wicket/pages/ComparePage.html
src/main/java/com/gitblit/wicket/pages/ComparePage.java

index 48db5e4641a18d3fc7a73b7344c540f0a5462bd0..9c38687ae9feff57bfa2b263f6c39d16a30c9844 100644 (file)
@@ -25,6 +25,7 @@ r20: {
        - Added branch graph image servlet based on EGit's branch graph renderer (issue-194)
        - Added option to render Markdown commit messages (issue-203)
        - Added setting to control creating a repository as --shared on Unix servers (issue-263)
+       - Added raw links to the commit, commitdiff, and compare pages (issue-319)
        - Added setting to globally disable anonymous pushes in the receive pack
        - Added a normalized diffstat display to the commit, commitdiff, and compare pages
     dependencyChanges:
index 71d7f64db9c2c38e1c3fc41e8e06e8c9320685e7..2c35a28c97aae818c912cdb2f625665f4e1c1dfe 100644 (file)
@@ -47,7 +47,7 @@
                        <td class="hidden-phone rightAlign">\r
                                <span class="hidden-tablet" style="padding-right:20px;" wicket:id="diffStat"></span>\r
                                <span class="link">\r
-                                       <a wicket:id="patch"><wicket:message key="gb.patch"></wicket:message></a> | <a wicket:id="view"><wicket:message key="gb.view"></wicket:message></a> | <a wicket:id="blame"><wicket:message key="gb.blame"></wicket:message></a> | <a wicket:id="history"><wicket:message key="gb.history"></wicket:message></a>\r
+                                       <span class="hidden-tablet"><a wicket:id="patch"><wicket:message key="gb.patch"></wicket:message></a> | </span><a wicket:id="view"><wicket:message key="gb.view"></wicket:message></a><span class="hidden-tablet"> | <a wicket:id="raw"><wicket:message key="gb.raw"></wicket:message></a></span> | <a wicket:id="blame"><wicket:message key="gb.blame"></wicket:message></a> | <a wicket:id="history"><wicket:message key="gb.history"></wicket:message></a>\r
                                </span>\r
                        </td>\r
                </tr>\r
index 7ad6615b4f14615de55abc7c2e7c4dde098e81a6..0856547ff34d0a4921a2e4d08b70160544538859 100644 (file)
@@ -170,6 +170,9 @@ public class CommitDiffPage extends RepositoryPage {
                                        item.add(new BookmarkablePageLink<Void>("view", BlobPage.class, WicketUtils
                                                        .newPathParameter(repositoryName, entry.commitId, entry.path))
                                                        .setEnabled(!entry.changeType.equals(ChangeType.DELETE)));
+                                       item.add(new BookmarkablePageLink<Void>("raw", RawPage.class, WicketUtils
+                                                       .newPathParameter(repositoryName, entry.commitId, entry.path))
+                                                       .setEnabled(!entry.changeType.equals(ChangeType.DELETE)));
                                        item.add(new BookmarkablePageLink<Void>("blame", BlamePage.class, WicketUtils
                                                        .newPathParameter(repositoryName, entry.commitId, entry.path))
                                                        .setEnabled(!entry.changeType.equals(ChangeType.ADD)
index 8d169255b3f89170c1c64a863301af9bf001aec1..2aa10f26d527855f0961e90acae48c94c5228e16 100644 (file)
@@ -81,7 +81,7 @@
                        <td class="hidden-phone rightAlign">\r
                                <span class="hidden-tablet" style="padding-right:20px;" wicket:id="diffStat"></span>\r
                                <span class="link">\r
-                                       <a wicket:id="diff"><wicket:message key="gb.diff"></wicket:message></a> | <a wicket:id="view"><wicket:message key="gb.view"></wicket:message></a> | <a wicket:id="blame"><wicket:message key="gb.blame"></wicket:message></a> | <a wicket:id="history"><wicket:message key="gb.history"></wicket:message></a>\r
+                                       <a wicket:id="diff"><wicket:message key="gb.diff"></wicket:message></a> | <span class="hidden-tablet"><a wicket:id="view"><wicket:message key="gb.view"></wicket:message></a> | <a wicket:id="raw"><wicket:message key="gb.raw"></wicket:message></a> | </span><a wicket:id="blame"><wicket:message key="gb.blame"></wicket:message></a> | <a wicket:id="history"><wicket:message key="gb.history"></wicket:message></a>\r
                                </span>\r
                        </td>\r
                </tr>\r
index 517bf78bde3d6c4b73545a0cb418711a0dd1c7c1..8dacdc5a83611c5077d0c5baaebb636c25b68074 100644 (file)
@@ -220,6 +220,9 @@ public class CommitPage extends RepositoryPage {
                                        item.add(new BookmarkablePageLink<Void>("view", BlobPage.class, WicketUtils\r
                                                        .newPathParameter(repositoryName, entry.commitId, entry.path))\r
                                                        .setEnabled(!entry.changeType.equals(ChangeType.DELETE)));\r
+                                       item.add(new BookmarkablePageLink<Void>("raw", RawPage.class, WicketUtils\r
+                                                       .newPathParameter(repositoryName, entry.commitId, entry.path))\r
+                                                       .setEnabled(!entry.changeType.equals(ChangeType.DELETE)));\r
                                        item.add(new BookmarkablePageLink<Void>("blame", BlamePage.class, WicketUtils\r
                                                        .newPathParameter(repositoryName, entry.commitId, entry.path))\r
                                                        .setEnabled(!entry.changeType.equals(ChangeType.ADD)\r
index 494d0b5b696c278307eb6c8fc37541c382c5ce69..d7df717c11b3932eeb05e984de42021293b0891f 100644 (file)
@@ -64,7 +64,7 @@
                                                        <td class="hidden-phone rightAlign">\r
                                                                <span class="hidden-tablet" style="padding-right:20px;" wicket:id="diffStat"></span>\r
                                                                <span class="link">\r
-                                                                       <a wicket:id="patch"><wicket:message key="gb.patch"></wicket:message></a> | <a wicket:id="view"><wicket:message key="gb.view"></wicket:message></a> | <a wicket:id="blame"><wicket:message key="gb.blame"></wicket:message></a> | <a wicket:id="history"><wicket:message key="gb.history"></wicket:message></a>\r
+                                                                       <span class="hidden-tablet"><a wicket:id="patch"><wicket:message key="gb.patch"></wicket:message></a> | </span><a wicket:id="view"><wicket:message key="gb.view"></wicket:message></a> | <span class="hidden-tablet"><a wicket:id="raw"><wicket:message key="gb.raw"></wicket:message></a> | </span><a wicket:id="blame"><wicket:message key="gb.blame"></wicket:message></a> | <a wicket:id="history"><wicket:message key="gb.history"></wicket:message></a>\r
                                                                </span>\r
                                                        </td>\r
                                                </tr>\r
index 25b5f5c0da876ccb86a48a3c67bc57838c3e7968..d88c864aeae8b859a4e1eb91a907a35f8f6e919f 100644 (file)
@@ -183,6 +183,9 @@ public class ComparePage extends RepositoryPage {
                                                item.add(new BookmarkablePageLink<Void>("view", BlobPage.class, WicketUtils
                                                                .newPathParameter(repositoryName, endId, entry.path))
                                                                .setEnabled(!entry.changeType.equals(ChangeType.DELETE)));
+                                               item.add(new BookmarkablePageLink<Void>("raw", RawPage.class, WicketUtils
+                                                               .newPathParameter(repositoryName, endId, entry.path))
+                                                               .setEnabled(!entry.changeType.equals(ChangeType.DELETE)));
                                                item.add(new BookmarkablePageLink<Void>("blame", BlamePage.class, WicketUtils
                                                                .newPathParameter(repositoryName, endId, entry.path))
                                                                .setEnabled(!entry.changeType.equals(ChangeType.ADD)