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:
Chris Hill-Scott
2019-06-07 09:09:13 +01:00
parent 1ca0dfacf7
commit b233e3ca24

View File

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