diff options
author | Albert Ting <altlist@gmail.com> | 2016-07-06 22:47:46 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2016-07-06 22:57:41 +0200 |
commit | 3f75ddd65da6a5753fa90b429ed6f43b4eeae088 (patch) | |
tree | cc1ad97a6bd0907fb91717b1bc88e3a8f8cb5191 /template/en/default/bug/show-header.html.tmpl | |
parent | c844a29d89b0fd5841e0020ec62a206c319f25ba (diff) | |
download | bugzilla-3f75ddd65da6a5753fa90b429ed6f43b4eeae088.tar.gz bugzilla-3f75ddd65da6a5753fa90b429ed6f43b4eeae088.tar.xz |
Bug 1203960 - Add syntax highlighting to markdown
r=dylan
Initial implementation by Koosha KM <koosha.khajeh@gmail.com>
Diffstat (limited to 'template/en/default/bug/show-header.html.tmpl')
-rw-r--r-- | template/en/default/bug/show-header.html.tmpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/template/en/default/bug/show-header.html.tmpl b/template/en/default/bug/show-header.html.tmpl index 0aaaf91e3..bce881420 100644 --- a/template/en/default/bug/show-header.html.tmpl +++ b/template/en/default/bug/show-header.html.tmpl @@ -70,6 +70,12 @@ "bz_component_$bug.component", "bz_bug_$bug.bug_id", ] %] +[% markdown_enabled = feature_enabled('jsonrpc') AND user.settings.use_markdown.value == "on" %] +[% IF markdown_enabled %] + [% javascript_urls.push("js/highlight.js/highlight.pack.js") %] + [% style_urls.push("js/highlight.js/styles/github.css") %] +[% END %] + [% FOREACH group = bug.groups_in %] [% bodyclasses.push("bz_group_$group.name") %] [% END %] |