| | |
| | |
|
| | | add(new Label("missingBlob").setVisible(false));
|
| | |
|
| | | final int tabLength = app().settings().getInteger(Keys.web.tabLength, 4);
|
| | | List<AnnotatedLine> lines = DiffUtils.blame(getRepository(), blobPath, objectId);
|
| | | final Map<?, String> colorMap = initializeColors(activeBlameType, lines);
|
| | | ListDataProvider<AnnotatedLine> blameDp = new ListDataProvider<AnnotatedLine>(lines);
|
| | |
| | | color = colorMap.get(entry.commitId);
|
| | | break;
|
| | | }
|
| | | Component data = new Label("data", StringUtils.escapeForHtml(entry.data, true)).setEscapeModelStrings(false);
|
| | | Component data = new Label("data", StringUtils.escapeForHtml(entry.data, true, tabLength)).setEscapeModelStrings(false);
|
| | | data.add(new SimpleAttributeModifier("style", "background-color: " + color + ";"));
|
| | | item.add(data);
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | protected boolean isCommitPage() {
|
| | | return true;
|
| | | }
|
| | |
|
| | | @Override
|
| | | protected Class<? extends BasePage> getRepoNavPageClass() {
|
| | | return TreePage.class;
|
| | | }
|