Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Use else in template instead of two ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
morty committed Jan 5, 2016
1 parent 616ec22 commit e43434b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ckanext/archiver/templates/report/broken_links.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -69,4 +67,4 @@
{% endfor %}
</tbody>
</table>
{% endif %}
{% endif %}

0 comments on commit e43434b

Please sign in to comment.