move platform admin links platform admin page

removed "View providers" and "List all services" from the choose service page and the left-hand nav bar
This commit is contained in:
Leo Hemsted
2016-05-25 09:55:19 +01:00
parent 1292bf9fe6
commit ecf0dd7ebb
6 changed files with 12 additions and 37 deletions

View File

@@ -16,11 +16,5 @@
{% if current_user.has_permissions(['manage_api_keys']) %}
<li><a href="{{ url_for('.api_keys', service_id=current_service.id) }}">API keys</a></li>
{% endif %}
{% if current_user.has_permissions(admin_override=True) %}
<li><a href="{{ url_for('.show_all_services') }}"> List all services </a></li>
{% endif %}
{% if current_user.has_permissions(admin_override=True) %}
<li><a href="{{ url_for('.view_providers') }}">View providers</a></li>
{% endif %}
</ul>
</nav>

View File

@@ -10,14 +10,6 @@
<h1 class="heading-large">
Choose service
</h1>
{% if current_user.has_permissions(admin_override=True) %}
{{ browse_list([
{
'title': 'List all services',
'link': url_for('.show_all_services')
}
]) }}
{% endif %}
{{ browse_list(services) }}
{{ browse_list([

View File

@@ -11,6 +11,15 @@
Platform admin
</h1>
&lt;insert platform admin content here&gt;
{{ browse_list([
{
'title': 'List all services',
'link': url_for('.show_all_services')
},
{
'title': 'View providers',
'link': url_for('.view_providers')
},
]) }}
{% endblock %}