summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/pages/CommitPage.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-05-05 09:53:24 -0400
committerJames Moger <james.moger@gitblit.com>2014-05-05 09:53:24 -0400
commitff17f7bac432b4ba8310ba3ea335748a34859d50 (patch)
tree58278b648975c83e5af80cb79f3cf6f0bf78759c /src/main/java/com/gitblit/wicket/pages/CommitPage.java
parent1946fe76331b37c5a3be97268f0e3b0e58f3bb00 (diff)
downloadgitblit-ff17f7bac432b4ba8310ba3ea335748a34859d50.tar.gz
gitblit-ff17f7bac432b4ba8310ba3ea335748a34859d50.zip
Replace RawPage with RawServlet
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/CommitPage.java')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/CommitPage.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/CommitPage.java b/src/main/java/com/gitblit/wicket/pages/CommitPage.java
index 8bc98489..6fadec5b 100644
--- a/src/main/java/com/gitblit/wicket/pages/CommitPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/CommitPage.java
@@ -35,6 +35,7 @@ import com.gitblit.Constants;
import com.gitblit.models.GitNote;
import com.gitblit.models.PathModel.PathChangeModel;
import com.gitblit.models.SubmoduleModel;
+import com.gitblit.servlet.RawServlet;
import com.gitblit.utils.JGitUtils;
import com.gitblit.wicket.CacheControl;
import com.gitblit.wicket.CacheControl.LastModified;
@@ -222,8 +223,8 @@ public class CommitPage 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))
+ String rawUrl = RawServlet.asLink(getContextUrl(), repositoryName, entry.commitId, entry.path);
+ item.add(new ExternalLink("raw", rawUrl)
.setEnabled(!entry.changeType.equals(ChangeType.DELETE)));
item.add(new BookmarkablePageLink<Void>("blame", BlamePage.class, WicketUtils
.newPathParameter(repositoryName, entry.commitId, entry.path))