Skip to content

Commit

Permalink
[sm] Fixed errors related to the render of the data api modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Gutts-n committed Dec 20, 2024
1 parent 4085ede commit c68a14e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/nhs/templates/ajax_snippets/api_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h3>
<td><strong>{{ _('Query example (results with the \'{}\' field as true)'.format(example_field_id)) }}</strong></td>
<td><code>{{ h.url_for(controller='api', action='action', ver=3, logic_function='datastore_search', resource_id=resource_id, q='{"' + example_field_id + '":"true"}', qualified=True) }}</code></td>
{% else %}
<td><strong>{{ _('Query example (results with the \'{}\' field starts with the letter "a")'.format(example_field_id)) }}</strong></td>
<td><strong>{{ _('Query example (results with the \'{}\' field contains the letter "a")'.format(example_field_id)) }}</strong></td>
<td><code>{{ h.url_for(controller='api', action='action', ver=3, logic_function='datastore_search', resource_id=resource_id, q='{"' + example_field_id + '":"a"}', qualified=True) }}</code></td>
{% endif %}
</tr>
Expand Down Expand Up @@ -118,7 +118,7 @@ <h3>
{% elif example_field_type == 'BOOLEAN'%}
q: '{"{{ example_field_id }}":"true"}' // query for '{{ example_field_id }} is true'
{% else %}
q: '{"{{ example_field_id }}":"a"}' // query for '{{ example_field_id }} starts with the letter "a"'
q: '{"{{ example_field_id }}":"a"}' // query for '{{ example_field_id }} contains the letter "a"'
{% endif %}
};
$.ajax({
Expand Down

0 comments on commit c68a14e

Please sign in to comment.