Skip to content

Commit

Permalink
Moving data api specific template snippets to datastore ext
Browse files Browse the repository at this point in the history
  • Loading branch information
jrods committed Oct 3, 2016
1 parent ffc7c7d commit d519a1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ckan/templates/package/resource_read.html
Expand Up @@ -45,9 +45,6 @@
</a>
</li>
{% endif %}
{% if 'datastore' in g.plugins %}
<li>{% snippet 'package/snippets/data_api_button.html', resource=res, datastore_root_url=c.datastore_api %}</li>
{% endif %}
{% endblock %}
</ul>
{% endblock %}
Expand Down
6 changes: 6 additions & 0 deletions ckanext/datastore/templates/package/resource_read.html
@@ -0,0 +1,6 @@
{% ckan_extends %}

{% block resource_actions_inner %}
{{ super() }}
<li>{% snippet 'package/snippets/data_api_button.html', resource=res, datastore_root_url=c.datastore_api %}</li>
{% endblock %}

0 comments on commit d519a1b

Please sign in to comment.