James Moger
2015-11-19 e41e8f8c3bc9f5edab1d271464364f95620ece8c
src/main/java/com/gitblit/wicket/pages/TreePage.java
@@ -20,6 +20,7 @@
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.apache.wicket.markup.repeater.Item;
import org.apache.wicket.markup.repeater.data.DataView;
@@ -30,6 +31,7 @@
import com.gitblit.models.PathModel;
import com.gitblit.models.SubmoduleModel;
import com.gitblit.servlet.RawServlet;
import com.gitblit.utils.ByteFormat;
import com.gitblit.utils.JGitUtils;
import com.gitblit.wicket.CacheControl;
@@ -50,7 +52,7 @@
      Repository r = getRepository();
      RevCommit commit = getCommit();
      List<PathModel> paths = JGitUtils.getFilesInPath(r, path, commit);
      List<PathModel> paths = JGitUtils.getFilesInPath2(r, path, commit);
      // tree page links
      add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class,
@@ -162,8 +164,8 @@
                  links.add(new BookmarkablePageLink<Void>("view", BlobPage.class,
                        WicketUtils.newPathParameter(repositoryName, id,
                              path)));
                  links.add(new BookmarkablePageLink<Void>("raw", RawPage.class, WicketUtils
                        .newPathParameter(repositoryName, id, path)));
                  String rawUrl = RawServlet.asLink(getContextUrl(), repositoryName, id, path);
                  links.add(new ExternalLink("raw", rawUrl));
                  links.add(new BookmarkablePageLink<Void>("blame", BlamePage.class,
                        WicketUtils.newPathParameter(repositoryName, id,
                              path)));
@@ -184,4 +186,10 @@
   protected String getPageName() {
      return getString("gb.tree");
   }
   @Override
   protected boolean isCommitPage() {
      return true;
   }
}