| | |
| | | }
|
| | |
|
| | | protected void addFullText(String wicketId, String text, boolean substituteRegex) {
|
| | | String html = StringUtils.breakLinesForHtml(text);
|
| | | String html;
|
| | | if (substituteRegex) {
|
| | | html = substituteText(text);
|
| | | } else {
|
| | | html = StringUtils.breakLinesForHtml(text);
|
| | | }
|
| | | add(new Label(wicketId, html).setEscapeModelStrings(false));
|
| | | }
|
| | |
|
| | | protected String substituteText(String text) {
|
| | | String html = StringUtils.breakLinesForHtml(text);
|
| | | Map<String, String> map = new HashMap<String, String>();
|
| | | // global regex keys
|
| | | if (GitBlit.getBoolean(Keys.regex.global, false)) {
|
| | |
| | | + definition);
|
| | | }
|
| | | }
|
| | | }
|
| | | add(new Label(wicketId, html).setEscapeModelStrings(false));
|
| | | return html;
|
| | | }
|
| | |
|
| | | protected abstract String getPageName();
|