clients: implement launch button feature

Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
Alice Kile authored and Joseph Nuthalapati committed 2019-11-18 19:41:14 +05:30
1 parent 42949bf212
commit 8e3bbdb089
7 files changed
+22 -13

No files matched your search

+14 -1
View File
@@ -45,7 +45,20 @@
</p>
{% endif %}
{% include "clients.html" with clients=clients enabled=is_enabled %}
{% if clients|length == 1 and clients|first|lookup:'platforms'|length == 1 and clients|first|lookup:'platforms'|first|lookup:'type' == 'web' %}
{% block launch_button %}
<p>
<a href='{{ clients|first|lookup:"platforms"|first|lookup:"url" }}' target='_blank' class='btn btn-primary'>
{% trans "Launch web client" %}</a>
</p>
{% endblock %}
{% else %}
{% include "clients.html" with clients=clients enabled=is_enabled %}
{% endif %}
{% block subsubmenu %}
{% if subsubmenu %}