policies: show messages of root result

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-23 17:14:54 +01:00
parent bd74e07ce1
commit c6c4636b9b
1 changed files with 11 additions and 3 deletions

View File

@ -29,9 +29,16 @@
{% endif %} {% endif %}
{% if policy_result %} {% if policy_result %}
<hr> <hr>
<em> <em>{% trans 'Messages:' %}</em>
{% trans 'Explanation:' %} <ul class="pf-c-list">
</em> {% for message in policy_result.messages %}
<li>
{{ message }}
</li>
{% endfor %}
</ul>
{% if policy_result.source_results %}
<em>{% trans 'Explanation:' %}</em>
<ul class="pf-c-list"> <ul class="pf-c-list">
{% for source_result in policy_result.source_results %} {% for source_result in policy_result.source_results %}
<li> <li>
@ -49,6 +56,7 @@
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
{% endif %}
</div> </div>
{% if 'back' in request.GET %} {% if 'back' in request.GET %}
<a href="{% back %}" class="btn btn-primary btn-block btn-lg">{% trans 'Back' %}</a> <a href="{% back %}" class="btn btn-primary btn-block btn-lg">{% trans 'Back' %}</a>