Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MJU-POPS
ckanext-archiver
Commits
5bafe19c
Commit
5bafe19c
authored
Jan 05, 2016
by
Tom Mortimer-Jones
Browse files
Merge pull request #11 from datagovuk/jinjafication
Use else in template instead of two ifs
parents
616ec22a
e43434bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
ckanext/archiver/templates/report/broken_links.html
View file @
5bafe19c
...
...
@@ -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 %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment