mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Disable launch button for web client when not installed
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
1 parent
ad2463765a
commit
8996cf0c11
2 files changed
+5
-2
No files matched your search
@@ -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 %}
|
||||
|
||||
Reference in new issue
Block a user