mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Added current_service to flask context and template context.
Fix all tests and conflicts. Removed comment line.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
<p>
|
||||
API usage is described in
|
||||
<a href="{{ url_for('.documentation', service_id=service_id) }}">the
|
||||
<a href="{{ url_for('.documentation', service_id=current_service.id) }}">the
|
||||
developer documentation</a>.
|
||||
</p>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
Service ID
|
||||
</h2>
|
||||
<p class="api-key-key">
|
||||
{{ service_id }}
|
||||
{{ current_service.id }}
|
||||
</p>
|
||||
|
||||
{% call(item) list_table(
|
||||
@@ -45,13 +45,13 @@
|
||||
{% endcall %}
|
||||
{% else %}
|
||||
{% call field(align='right', status='error') %}
|
||||
<a href='{{ url_for('.revoke_api_key', service_id=service_id, key_id=item.id) }}'>Revoke</a>
|
||||
<a href='{{ url_for('.revoke_api_key', service_id=current_service.id, key_id=item.id) }}'>Revoke</a>
|
||||
{% endcall %}
|
||||
{% endif %}
|
||||
{% endcall %}
|
||||
|
||||
<p class='table-show-more-link'>
|
||||
<a href="{{ url_for('.create_api_key', service_id=service_id) }}">Create a new API key</a>
|
||||
<a href="{{ url_for('.create_api_key', service_id=current_service.id) }}">Create a new API key</a>
|
||||
</p>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user