Use the same pattern as elsewhere for ‘new thing’

On the team and templates pages we have a pattern for adding a new
‘thing’, which is a green button in the top right.

This commit changes the API key page to follow the same pattern.
This commit is contained in:
Chris Hill-Scott
2016-04-25 09:50:17 +01:00
parent e049e691fd
commit 71035ab96e
3 changed files with 11 additions and 10 deletions

View File

@@ -8,9 +8,16 @@
{% block maincolumn_content %}
<h1 class="heading-large">
API keys
</h1>
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-large">
API keys
</h1>
</div>
<div class="column-one-third">
<a href="{{ url_for('.create_api_key', service_id=current_service.id) }}" class="button align-with-heading">Create new API key</a>
</div>
</div>
<p>
To connect to the API you will need to create an API Key. Each service can have multiple API Keys to allow
@@ -44,10 +51,6 @@
{% endif %}
{% endcall %}
<p class='table-show-more-link'>
<a href="{{ url_for('.create_api_key', service_id=current_service.id) }}">Create a new API key</a>
</p>
{{ api_key(current_service.id, "Service ID", thing="service ID") }}
{% endblock %}