| | |
| | | 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;
|
| | |
| | |
|
| | | 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;
|
| | |
| | |
|
| | | 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,
|
| | |
| | | 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)));
|
| | |
| | | protected String getPageName() {
|
| | | return getString("gb.tree");
|
| | | }
|
| | |
|
| | | @Override
|
| | | protected boolean isCommitPage() {
|
| | | return true;
|
| | | }
|
| | |
|
| | | }
|