From 8e3bbdb089dc86ea3f52fd1efecc1aefd7dfe5c5 Mon Sep 17 00:00:00 2001
From: Alice Kile
- - {% trans "Launch web client" %} -
{% endblock %} diff --git a/plinth/modules/jsxc/templates/jsxc.html b/plinth/modules/jsxc/templates/jsxc.html index 2cb34f379..093f03f1e 100644 --- a/plinth/modules/jsxc/templates/jsxc.html +++ b/plinth/modules/jsxc/templates/jsxc.html @@ -26,11 +26,6 @@{{ paragraph|safe }}
{% endfor %} - -- - {% trans "Launch web client" %} -
{% endblock %} {% block configuration %} diff --git a/plinth/modules/roundcube/urls.py b/plinth/modules/roundcube/urls.py index a9c29fda5..f1ba3a856 100644 --- a/plinth/modules/roundcube/urls.py +++ b/plinth/modules/roundcube/urls.py @@ -29,6 +29,6 @@ urlpatterns = [ AppView.as_view(app_id='roundcube', name=roundcube.name, diagnostics_module_name='roundcube', description=roundcube.description, - show_status_block=False, + show_status_block=False, clients=roundcube.clients, manual_page=roundcube.manual_page), name='index'), ] diff --git a/plinth/templates/app.html b/plinth/templates/app.html index d3077de16..11e65af65 100644 --- a/plinth/templates/app.html +++ b/plinth/templates/app.html @@ -45,7 +45,20 @@ {% 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 %} ++ + {% trans "Launch web client" %} +
+ {% endblock %} + + {% else %} + + {% include "clients.html" with clients=clients enabled=is_enabled %} + + {% endif %} {% block subsubmenu %} {% if subsubmenu %} diff --git a/plinth/templates/clients.html b/plinth/templates/clients.html index 003c8bac1..1192f4027 100644 --- a/plinth/templates/clients.html +++ b/plinth/templates/clients.html @@ -44,7 +44,7 @@