James Moger
2014-05-05 ff17f7bac432b4ba8310ba3ea335748a34859d50
src/main/java/com/gitblit/wicket/pages/DocPage.java
@@ -20,10 +20,12 @@
import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.link.ExternalLink;
import org.apache.wicket.markup.html.panel.Fragment;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.revwalk.RevCommit;
import com.gitblit.servlet.RawServlet;
import com.gitblit.utils.BugtraqProcessor;
import com.gitblit.utils.JGitUtils;
import com.gitblit.utils.StringUtils;
@@ -87,8 +89,8 @@
            WicketUtils.newPathParameter(repositoryName, objectId, documentPath)));
      fragment.add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class,
            WicketUtils.newPathParameter(repositoryName, objectId, documentPath)));
      fragment.add(new BookmarkablePageLink<Void>("rawLink", RawPage.class, WicketUtils.newPathParameter(
            repositoryName, objectId, documentPath)));
      String rawUrl = RawServlet.asLink(getContextUrl(), repositoryName, objectId, documentPath);
      fragment.add(new ExternalLink("rawLink", rawUrl));
      fragment.add(new Label("content", markupDoc.html).setEscapeModelStrings(false));
      add(fragment);