Adds multiline support for reports in dashboard

Currently there is no way to specify linebreaks in app reports.
This change adds django linebreaksbr filter to reports in
dashboard which converts newlines into html <br />

Change-Id: I91f5906056173428109d8a4f9c7750a601b801e9
Closes-Bug: #1611019
This commit is contained in:
Sergey Filatov 2016-08-28 11:05:40 +03:00
parent ab1ebdefac
commit c1b21fc188
1 changed files with 1 additions and 1 deletions

View File

@ -5,6 +5,6 @@
</div>
<div class="reports logs">
{% for report in reports %}
<div title="{{report.level|capfirst}}" class="report-{{report.level}}">{{report.created}} &mdash; {{report.text | urlize}}</div>
<div title="{{report.level|capfirst}}" class="report-{{report.level}}">{{report.created}} &mdash; {{report.text | linebreaksbr | urlize}}</div>
{% endfor %}
</div>