Skip to content

Commit

Permalink
[#752] Hide data-api button instead of disable
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Apr 11, 2013
1 parent f3bb02d commit bafb816
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ckan/templates/package/snippets/data_api_button.html
Expand Up @@ -8,6 +8,4 @@
{% 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>
{% endif %}

0 comments on commit bafb816

Please sign in to comment.