ckan / ckanext-qa

CKAN QA Extension
MIT License
26 stars 52 forks source link

Incorrect template tag prevent the QA rating to be displayed in the resource page #3

Closed Hoedic closed 10 years ago

Hoedic commented 10 years ago

By default, when installing the QA extension, the rating at the resource level does not work (although the /qa/ works fine).

After investigation, it appears that one of the template block is not coherent with the main CKAN template.

File ckanext-qa/ckanext/qa/templates_extend/package/resource_read.html

The first block is declared as follow

{% block resource_additional_information %}
  {{ super() }}

  {{ h.qa_stars(c.resource.id) }}
{% endblock %}

But in the master CKAN template (ckan/templates/package/resource_read.html), there is no such block. The only equivalent thing is

{% block resource_additional_information %}

amercader commented 10 years ago

Cc @johnmartin