| | |
| | | table = missingBlob(blobPath, commit);
|
| | | } else {
|
| | | table = generateSourceView(source, extension, type == 1);
|
| | | addBottomScriptInline("jQuery(prettyPrint);");
|
| | | }
|
| | | add(new Label("blobText", table).setEscapeModelStrings(false));
|
| | | add(new Image("blobImage").setVisible(false));
|
| | |
| | | table = missingBlob(blobPath, commit);
|
| | | } else {
|
| | | table = generateSourceView(source, null, false);
|
| | | addBottomScriptInline("jQuery(prettyPrint);");
|
| | | }
|
| | | add(new Label("blobText", table).setEscapeModelStrings(false));
|
| | | add(new Image("blobImage").setVisible(false));
|
| | |
| | | } else {
|
| | | sb.append("<pre class=\"plainprint\">");
|
| | | }
|
| | | lines = StringUtils.escapeForHtml(source, true).split("\n");
|
| | | final int tabLength = app().settings().getInteger(Keys.web.tabLength, 4);
|
| | | lines = StringUtils.escapeForHtml(source, true, tabLength).split("\n");
|
| | |
|
| | | sb.append("<table width=\"100%\"><tbody>");
|
| | |
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | protected boolean isCommitPage() {
|
| | | return true;
|
| | | }
|
| | |
|
| | | @Override
|
| | | protected Class<? extends BasePage> getRepoNavPageClass() {
|
| | | return TreePage.class;
|
| | | }
|