Merge pull request #123 from kxyfyh/new_branch
Disable submodule raw links in commit & commitdiff page. UTF-8 page encoding.
| | |
| | | mount("/user", UserPage.class, "user");
|
| | | mount("/forks", ForksPage.class, "r");
|
| | | mount("/fork", ForkPage.class, "r");
|
| | | |
| | | getMarkupSettings().setDefaultMarkupEncoding("UTF-8");
|
| | | }
|
| | |
|
| | | private void mount(String location, Class<? extends WebPage> clazz, String... parameters) {
|
| | |
| | | |
| | | // quick links |
| | | if (entry.isSubmodule()) { |
| | | item.add(new ExternalLink("raw", "").setEnabled(false)); |
| | | // submodule |
| | | item.add(new ExternalLink("patch", "").setEnabled(false)); |
| | | item.add(new BookmarkablePageLink<Void>("view", CommitPage.class, WicketUtils |
| | |
| | | .newPathParameter(repositoryName, entry.commitId, path)));
|
| | | }
|
| | |
|
| | | |
| | | // quick links
|
| | | if (entry.isSubmodule()) {
|
| | | item.add(new ExternalLink("raw", "").setEnabled(false));
|
| | | |
| | | // submodule
|
| | | item.add(new BookmarkablePageLink<Void>("diff", BlobDiffPage.class, WicketUtils
|
| | | .newPathParameter(repositoryName, entry.commitId, entry.path))
|