mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Disable launch button for web client when not installed
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
parent
ad2463765a
commit
8996cf0c11
@ -43,7 +43,10 @@
|
||||
{% if platform.type == 'web' %}
|
||||
<td>{{ client.name }}</td>
|
||||
<td>
|
||||
<a class="btn btn-success" href="{{ platform.url }}" role="button">
|
||||
<a class="btn btn-success" role="button"
|
||||
{% if not enabled %} disabled="disabled"
|
||||
{% else %} href="{{ platform.url }}"
|
||||
{% endif %}>
|
||||
{% trans "Launch" %}
|
||||
<span class="glyphicon glyphicon-new-window"></span>
|
||||
</a>
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% include "clients.html" with clients=clients %}
|
||||
{% include "clients.html" with clients=clients enabled=service.is_enabled %}
|
||||
|
||||
{% block status %}
|
||||
{% if show_status_block %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user