Skip to content

Commit

Permalink
[#717] Removes disabled data-api button from resource page
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Apr 4, 2013
1 parent 7d75f08 commit 4d4a9ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ckan/templates/package/snippets/data_api_button.html
Expand Up @@ -7,7 +7,5 @@
{% if resource.datastore_active %}
{% set loading_text = _('Loading...') %}
{% set api_info_url = h.url_for(controller='api', action='snippet', ver=1, snippet_path='api_info.html', datastore_root_url=datastore_root_url, resource_id=resource.id) %}
<a class="btn btn-success" href="{{ api_info_url }}" data-module="api-info" data-module-template="{{ api_info_url }}" data-loading-text="{{ loading_text }}"><i class="icon-beaker icon-large"></i> {{ _('Data API') }}</a>
{% else %}
<a class="btn disabled" rel="tooltip" title="{{ _('Data API is unavailable for this resource as no data has been pushed to it yet') }}"><i class="icon-beaker icon-large"></i> {{ _('Data API') }}</a>
<a class="btn btn-success" href="{{ api_info_url }}" data-module="api-info" data-module-template="{{ api_info_url }}" data-loading-text="{{ loading_text }}"><i class="icon-beaker"></i> {{ _('Data API') }}</a>
{% endif %}

0 comments on commit 4d4a9ba

Please sign in to comment.