From 52f6da2a41ae4fd2568fdf86fd7e2a9d5d05f0c5 Mon Sep 17 00:00:00 2001
From: Alice Kile
Date: Thu, 21 Nov 2019 12:25:48 +0530
Subject: [PATCH] templates: Add toolbar for apps in app.html
Changes to the app.html layout, mainly:
- A new panel is created to hold action buttons. Closes #1698.
- Launch button is now shown in the panel alongside "Client Apps".
- Run Diagnostics button is moved into this panel as well. Closes #1690.
- Disable 'Launch web client' button when app is disabled. Closes #1718.
Reviewed-by: James Valleroy
---
plinth/templates/app.html | 22 +------
plinth/templates/clients.html | 10 +--
plinth/templates/setup.html | 2 +-
plinth/templates/toolbar.html | 96 ++++++++++++++++++++++++++++
plinth/templatetags/plinth_extras.py | 30 +++++++++
static/themes/default/css/plinth.css | 22 +++++++
6 files changed, 151 insertions(+), 31 deletions(-)
create mode 100644 plinth/templates/toolbar.html
diff --git a/plinth/templates/app.html b/plinth/templates/app.html
index e50f3f12b..ea43a9989 100644
--- a/plinth/templates/app.html
+++ b/plinth/templates/app.html
@@ -57,21 +57,7 @@
{% endif %}
- {% if clients|length == 1 %}
- {% with clients|first|lookup:'platforms' as platforms %}
- {% if platforms|length == 1 and platforms|first|lookup:'type' == 'web' %}
- {% block launch_button %}
-