Skip to content

Commit

Permalink
Merge pull request #1230 from okfn/1230-additional-info-extras-block
Browse files Browse the repository at this point in the history
add template block for extras in package/snippets/additional_info.html
  • Loading branch information
johnmartin committed Sep 10, 2013
2 parents 91b833c + 200587b commit 41ae6b5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions ckan/templates/package/snippets/additional_info.html
Expand Up @@ -54,14 +54,17 @@ <h3>{{ _('Additional Info') }}</h3>
</tr>
{% endif %}

{% for extra in h.sorted_extras(pkg_dict.extras) %}
{% set key, value = extra %}
<tr rel="dc:relation" resource="_:extra{{ i }}">
<th scope="row" class="dataset-label" property="rdfs:label">{{ _(key) }}</th>
<td class="dataset-details" property="rdf:value">{{ value }}</td>
</tr>
{% block extras scoped %}
{% for extra in h.sorted_extras(pkg_dict.extras) %}
{% set key, value = extra %}
<tr rel="dc:relation" resource="_:extra{{ i }}">
<th scope="row" class="dataset-label" property="rdfs:label">{{ _(key) }}</th>
<td class="dataset-details" property="rdf:value">{{ value }}</td>
</tr>
{% endfor %}
{% endblock %}

{% endblock %}
</tbody>
</table>
</section>

0 comments on commit 41ae6b5

Please sign in to comment.