mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Only show back to service link if you have service
It doesn’t make sense to show the back to service link if, for example, you are in the onboarding flow and haven’t created a service yet.
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
{% block fullwidth_content %}
|
||||
<div id="content">
|
||||
{% if current_user.is_authenticated %}
|
||||
{% if current_service %}
|
||||
<div class="navigation-service">
|
||||
<a href="{{ url_for('main.show_all_services_or_dashboard') }}">Back to service</a>
|
||||
<a href="{{ url_for('main.show_all_services_or_dashboard') }}">Back to {{ current_service.name }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<main role="main">
|
||||
|
||||
Reference in New Issue
Block a user