Commit e43434bc authored by Tom Mortimer-Jones's avatar Tom Mortimer-Jones
Browse files

Use else in template instead of two ifs

parent 616ec22a
......@@ -24,9 +24,7 @@
{% endfor %}
</tbody>
</table>
{% endif %}
{% if c.options['organization'] != None %}
{% else %}
<ul>
<li>Broken datasets: {{c.data['num_broken_packages']}} / {{c.data['num_packages']}} ({{c.data.get('broken_package_percent')}}%)</li>
<li>Broken links: {{c.data['num_broken_resources']}} / {{c.data['num_resources']}} ({{c.data.get('broken_resource_percent')}}%)</li>
......@@ -69,4 +67,4 @@
{% endfor %}
</tbody>
</table>
{% endif %}
\ No newline at end of file
{% endif %}
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