mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-05 06:01:46 -04:00
List live services if no organisations
If the user doesn’t belong to any organisations then the only live services they can see are the ones they directly have access to. So let’s list these above the user’s trial mode services (because they’re more important).
This commit is contained in:
@@ -40,6 +40,20 @@
|
||||
{% endfor %}
|
||||
<div class="keyline-block"></div>
|
||||
{% endif %}
|
||||
{% if not organisations %}
|
||||
{% if current_user.trial_mode_services %}
|
||||
</ul>
|
||||
<h2 class="heading-small">
|
||||
Live services
|
||||
</h2>
|
||||
<ul>
|
||||
{% endif %}
|
||||
{% for service in current_user.live_services %}
|
||||
<li class="browse-list-item">
|
||||
<a href="{{ url_for('.service_dashboard', service_id=service.id) }}" class="browse-list-link">{{ service.name }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if current_user.trial_mode_services %}
|
||||
{% if organisations or current_user.live_services %}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user