List rules as inactive if relevant #1392

This commit is contained in:
James Cole
2018-04-30 06:12:55 +02:00
parent f2b71bc280
commit 3ead4d4587
4 changed files with 12 additions and 4 deletions

View File

@@ -73,7 +73,9 @@
{% if rules.count > 0 %}
<ul>
{% for rule in rules %}
<li><a href="{{ route('rules.edit', [rule.id]) }}">{{ rule.title }}</a></li>
<li><a href="{{ route('rules.edit', [rule.id]) }}">{{ rule.title }}</a>
{% if not rule.active %}({{ 'list_inactive_rule'|_|lower }}){% endif %}
</li>
{% endfor %}
</ul>
{% endif %}