Skip to content

Commit

Permalink
Fix bug when hiding organisations' links on CKAN 2 new templates
Browse files Browse the repository at this point in the history
It was ignoring the c.organisations configuration, always showing the links.
  • Loading branch information
vitorbaptista committed Jun 1, 2013
1 parent 631e866 commit ba70e7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckanext/qa/templates_new/qa/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
<h1>Quality Assurance</h1>
<ul>
<li>{{h.link_to("Dataset openness scores", h.url_for(controller='ckanext.qa.controller:QAController', action='five_stars'))}}</li>
<li>{{h.link_to("Datasets with broken resource links", h.url_for(controller='ckanext.qa.controller:QAController', action='dataset_broken_resource_links'))}}</li>
<li>{{h.link_to("Datasets with broken resource links", h.url_for(controller='ckanext.qa.controller:QAController', action='dataset_broken_resource_links'))}}</li>
{% if c.organisations %}
<li>{{h.link_to("Organisations whose datasets contain broken resource links", h.url_for(controller='ckanext.qa.controller:QAController', action='broken_resource_links'))}}</li>
{% endif %}
</ul>
</div>
</div>
Expand Down

0 comments on commit ba70e7f

Please sign in to comment.