Added current_service to flask context and template context.

Fix all tests and conflicts.

Removed comment line.
This commit is contained in:
Nicholas Staples
2016-04-04 16:53:52 +01:00
parent f444284580
commit c31c55666b
37 changed files with 207 additions and 202 deletions

View File

@@ -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 %}