Policy detail: Fix reference to non-existing rule.position attr
Change-Id: I89c7577bb62c167629fc13ce9d6430e27232f5eb Closes-Bug: #1747515
This commit is contained in:
parent
e55851b5f8
commit
2ce45acd16
|
@ -17,10 +17,12 @@
|
|||
<dt>{% trans "Rules" %}</dt>
|
||||
<dd>
|
||||
{% if policy.rules %}
|
||||
<ol>
|
||||
{% for rule in policy.rules %}
|
||||
{% url 'horizon:project:firewalls_v2:ruledetails' rule.id as rule_url %}
|
||||
{{ rule.position }} : <a href="{{ rule_url }}">{{ rule.name|default:rule.id }}</a><br>
|
||||
<li><a href="{{ rule_url }}">{{ rule.name|default:rule.id }}</a></li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
{% else %}
|
||||
{% trans "-" %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue