From 03d55b0fd11bd8c9207adecfaf95bdc7c9038e76 Mon Sep 17 00:00:00 2001
From: Robert Rosca <32569096+RobertRosca@users.noreply.github.com>
Date: Sat, 24 Aug 2024 08:18:27 +0200
Subject: [PATCH 01/12] feat(frontend): enable/modify client row extra options
menu
---
.../templates/fragments/list-table-rows.html | 67 ++++++++++++-------
1 file changed, 41 insertions(+), 26 deletions(-)
diff --git a/src/zulip_write_only_proxy/frontend/templates/fragments/list-table-rows.html b/src/zulip_write_only_proxy/frontend/templates/fragments/list-table-rows.html
index c7d7e6b5..109a3d1b 100644
--- a/src/zulip_write_only_proxy/frontend/templates/fragments/list-table-rows.html
+++ b/src/zulip_write_only_proxy/frontend/templates/fragments/list-table-rows.html
@@ -60,35 +60,50 @@
/>
- {% if False %}
-
-
+
{% endfor %}
From ee7732c2ab0f2013304d2b8ea74c5ac8716f1bdf Mon Sep 17 00:00:00 2001
From: Robert Rosca <32569096+RobertRosca@users.noreply.github.com>
Date: Sat, 24 Aug 2024 08:29:00 +0200
Subject: [PATCH 08/12] feat(frontend): disable elog comment button when bot
not available
---
.../templates/fragments/list-table-rows.html | 31 ++++++++++---------
1 file changed, 17 insertions(+), 14 deletions(-)
diff --git a/src/zulip_write_only_proxy/frontend/templates/fragments/list-table-rows.html b/src/zulip_write_only_proxy/frontend/templates/fragments/list-table-rows.html
index f5fae0ae..c1f71175 100644
--- a/src/zulip_write_only_proxy/frontend/templates/fragments/list-table-rows.html
+++ b/src/zulip_write_only_proxy/frontend/templates/fragments/list-table-rows.html
@@ -2,20 +2,20 @@
{{ client.proposal_no }}
- {% if client.bot_site.host != "mylog.connect.xfel.eu" %}
-
- {% endif %}
+ {% if client.bot_site.host != "mylog.connect.xfel.eu" %}
+
+ {% endif %}
|
{{ client.created_at.strftime("%Y-%m-%d %H:%M") }} |
{{ client.created_by.replace("@xfel.eu", "") }} |
@@ -46,6 +46,9 @@
hx-get="{{ url_for('client_messages') }}"
hx-on::before-request="viewMessagesKey = getKeyForRow(event);"
hx-headers="js:{'X-API-key': getKeyForRow(event)}"
+ {% if client.bot_site.host != "mylog.connect.xfel.eu" %}
+ style="background-color: transparent;" disabled
+ {% endif %}
>