From 82e739d80e12ab606cda7e087061193ab054a9a9 Mon Sep 17 00:00:00 2001
From: Joseph Nuthalapati
Date: Sat, 18 Nov 2017 13:08:35 +0530
Subject: [PATCH] Merge header columns for client rows of one type
Signed-off-by: Joseph Nuthalapati
Reviewed-by: James Valleroy
---
plinth/templates/clients.html | 126 +++++++++++++++++++--------
plinth/templatetags/plinth_extras.py | 13 +++
2 files changed, 104 insertions(+), 35 deletions(-)
diff --git a/plinth/templates/clients.html b/plinth/templates/clients.html
index 7d86d0bcc..3e3d65e07 100644
--- a/plinth/templates/clients.html
+++ b/plinth/templates/clients.html
@@ -30,13 +30,28 @@
- {% if clients|has_web_clients %}
- {% for client in clients %}
- {% if client|has_web_clients %}
- {% for platform in client.platforms %}
+
+ {% if clients|has_web_clients %}
+ {% with clients|of_type:'web' as web_clients %}
+
+
Web
+ {% with web_clients|first as client %}
+ {% for platform in client.platforms %}
{% if platform.type == 'web' %}
+