Clean up code, fixes #392

This commit is contained in:
James Cole
2016-11-08 20:35:30 +01:00
parent 5b8583dd2b
commit 49cc8a97a3
9 changed files with 42 additions and 41 deletions

View File

@@ -68,8 +68,8 @@
<thead>
<tr>
<th colspan="2">{{ 'rule_name'|_ }}</th>
<th>{{ 'rule_triggers'|_ }}</th>
<th>{{ 'rule_actions'|_ }}</th>
<th class="hidden-xs">{{ 'rule_triggers'|_ }}</th>
<th class="hidden-xs">{{ 'rule_actions'|_ }}</th>
</tr>
</thead>
<tbody>
@@ -123,7 +123,7 @@
{% endif %}
{% if rule.description != "" %}
<small
<small class="hidden-xs"
{% if not rule.active %}
class="text-muted"
{% endif %}
@@ -131,7 +131,7 @@
{% endif %}
</td>
<td>
<td class="hidden-xs">
{% if rule.ruleTriggers.count > 0 %}
<ul class="small rule-triggers" data-id="{{ rule.id }}">
{% for trigger in rule.ruleTriggers %}
@@ -151,7 +151,7 @@
</ul>
{% endif %}
</td>
<td>
<td class="hidden-xs">
{% if rule.ruleActions.count > 0 %}
<ul class="small rule-actions" data-id="{{ rule.id }}">
{% for action in rule.ruleActions %}