Skip to content

Commit

Permalink
[#108] Show organisation ruleset results
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Aug 11, 2014
1 parent 876950d commit e5778c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/publisher.html
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,12 @@ <h3 class="panel-title">Files</h3>
<td data-bytes="{{current_stats.inverted_file.file_size.get(package)}}">{{current_stats.inverted_file.file_size.get(package)|filesizeformat}}</td>
<td>{{current_stats.aggregated_file[publisher][package]['versions'].keys()[0]}}</td>
<td>
{% if package in current_stats.inverted_file.ruleset_passes.standard and current_stats.inverted_file.activities[package] > 0 %}
{% if publisher in ckan and dataset in ckan[publisher] %}
{% if package in current_stats.inverted_file.ruleset_passes.standard and (current_stats.inverted_file.activities[package]+current_stats.inverted_file.organisations[package]) > 0 %}
{% if publisher in ckan and package in ckan[publisher] %}
<a href="http://dev.validator.iatistandard.org/?test=rulesets&url={{ckan[publisher][package].resource.url|urlencode}}">
{% endif %}
{{100.0*current_stats.inverted_file.ruleset_passes.standard[package]/current_stats.inverted_file.activities[package]}}
{% if publisher in ckan and dataset in ckan[publisher] %}
{{100.0*current_stats.inverted_file.ruleset_passes.standard[package]/(current_stats.inverted_file.activities[package]+current_stats.inverted_file.organisations[package])}}
{% if publisher in ckan and package in ckan[publisher] %}
</a>
{% endif %}
{% endif %}
Expand Down

0 comments on commit e5778c0

Please sign in to comment.