Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2375] datastore data api button cleanups
- Loading branch information
Showing
2 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{# Data API Help Button | ||
|
||
resource: the resource | ||
datastore_root_url: the root url of the datastore | ||
|
||
#} | ||
{% if resource.webstore_url %} | ||
<a class="btn btn-success" data-toggle="modal" href="{% url_for controller='api', action='snippet', ver=1, snippet_path='api-info.html', datastore_root_url=datastore_root_url %}">Data API</a> | ||
{% else %} | ||
<a class="btn disabled" rel="tooltip" title="Data API is unavailable for this resource as DataStore is disabled">Data API</a> | ||
{% endif %} |