Commonmark version (#321)
* Allow HTML in config_version to be interpreted * Allow Markdown in config_version
This commit is contained in:
committed by
Mike Terzo
parent
e76fdb578c
commit
c229f51556
@@ -27,6 +27,7 @@ from puppetboard.utils import (
|
||||
from puppetboard.dailychart import get_daily_reports_chart
|
||||
|
||||
import werkzeug.exceptions as ex
|
||||
import CommonMark
|
||||
|
||||
from . import __version__
|
||||
|
||||
@@ -606,6 +607,8 @@ def report(env, node_name, report_id):
|
||||
except StopIteration:
|
||||
abort(404)
|
||||
|
||||
report.version = CommonMark.commonmark(report.version)
|
||||
|
||||
return render_template(
|
||||
'report.html',
|
||||
report=report,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<tr>
|
||||
<td><a href="{{url_for('node', env=current_env, node_name=report.node)}}">{{ report.node }}</a></td>
|
||||
<td>
|
||||
{{report.version}}
|
||||
{{report.version|safe}}
|
||||
</td>
|
||||
<td rel="utctimestamp">
|
||||
{{report.start}}
|
||||
|
||||
@@ -7,3 +7,4 @@ Werkzeug >=0.12.1
|
||||
itsdangerous >=0.23
|
||||
pypuppetdb >=0.3.2
|
||||
requests >=2.13.0
|
||||
CommonMark==0.7.2
|
||||
|
||||
Reference in New Issue
Block a user