Disable launch button for web client when not installed

Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
manikanta varma datla 2018-08-02 16:00:23 +05:30 committed by Joseph Nuthalapati
parent ad2463765a
commit 8996cf0c11
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35
2 changed files with 5 additions and 2 deletions

View File

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

View File

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