Commit 495fa743 authored by Laurent Montel's avatar Laurent Montel 😁

Fix href when we don"t have url.

Don't show icon when we don't define it on button.
Interpretate html on button too
parent 12877159
......@@ -67,7 +67,16 @@
<!-- Response buttons/groupware links -->
{% for button in incidence.buttons %}
<a class="button" href="{{ button.uri }}">{% icon button.icon %}{{ button.label }}</a>
<a class="button"
{% if button.uri %}
href="{{ button.uri }}"
{% endif %}
>
{% if button.icon %}
{% icon button.icon %}
{% endif %}
{{ button.label|safe }}</a>
{% endfor %}
<!-- Comments -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment