# HG changeset patch # User Goffi # Date 1749199835 -7200 # Node ID 049a0638f6fa2649a3bc48d9db7e7ad18f90ca51 # Parent 5016fb0ff62f2315e87dcba26ea14769308a493f chat: Keywords handling: - Keywords are now displayed in messages. - Modal panel has been updated to allow for side panels, i.e. modal panel comming from top, bottom, right or left with an animation, and which can be closed by clicking/touching outside of the panel. rel 458 diff -r 5016fb0ff62f -r 049a0638f6fa sat_templates/templates/bulma/chat/chat.html --- a/sat_templates/templates/bulma/chat/chat.html Wed May 21 15:41:00 2025 +0200 +++ b/sat_templates/templates/bulma/chat/chat.html Fri Jun 06 10:50:35 2025 +0200 @@ -6,7 +6,7 @@ {% block title %}{{ target_jid }} - {{ super() }}{% endblock %} {% block body %} {{ icon_defs( - "comment-dots", "ellipsis", "paperclip", "pencil", "quote-left", "reply", "regular face-smile", "regular trash-can", "share-nodes" + "check", "comment-dots", "ellipsis", "lock", "paperclip", "pencil", "quote-left", "reply", "regular face-smile", "regular trash-can", "share-nodes", "unlock" ) }} @@ -40,7 +40,7 @@
-
+
diff -r 5016fb0ff62f -r 049a0638f6fa sat_templates/templates/bulma/chat/message.html --- a/sat_templates/templates/bulma/chat/message.html Wed May 21 15:41:00 2025 +0200 +++ b/sat_templates/templates/bulma/chat/message.html Fri Jun 06 10:50:35 2025 +0200 @@ -35,12 +35,12 @@ {{ icon('pencil', cls='icon is-small message-editions') }} {% endif %} {% if msg.encrypted %} - {{ icon('lock-filled', cls='icon is-small has-text-success') }} + {{ icon('lock', cls='icon is-small has-text-success') }} {% else %} - {{ icon('lock-open', cls='icon is-small has-text-danger') }} + {{ icon('unlock', cls='icon is-small has-text-danger') }} {% endif %} {% if msg.received %} - {{ icon('ok', cls='icon is-small has-text-link') }} + {{ icon('check', cls='icon is-small has-text-link') }} {% endif %} {% if msg.edited %} {{ icon('pencil', cls='icon is-small has-text-info') }} @@ -63,11 +63,18 @@
-
-
+
+ {% if msg.extra.keywords %} +
+ {% for keyword in msg.extra.keywords %} + {{keyword}} + {% endfor %} +
+ {% endif %} +
+
{# {{ icon('share-nodes', cls='icon is-small action-button', id='msg_share_' + msg.id) }} #} {{ icon('reply', cls='icon is-small action-button reply-button')}} {{ icon('regular face-smile', cls='icon is-small action-button reaction-button') }} diff -r 5016fb0ff62f -r 049a0638f6fa sat_templates/templates/bulma/chat/message_input.html --- a/sat_templates/templates/bulma/chat/message_input.html Wed May 21 15:41:00 2025 +0200 +++ b/sat_templates/templates/bulma/chat/message_input.html Fri Jun 06 10:50:35 2025 +0200 @@ -1,7 +1,7 @@
-
+
{% for file in attachments %} {% include 'chat/attachment_preview.html' %} {% endfor %} diff -r 5016fb0ff62f -r 049a0638f6fa sat_templates/templates/bulma/chat/sub_messages_panel.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/chat/sub_messages_panel.html Fri Jun 06 10:50:35 2025 +0200 @@ -0,0 +1,9 @@ + diff -r 5016fb0ff62f -r 049a0638f6fa sat_templates/templates/bulma/chat/thread_panel.html --- a/sat_templates/templates/bulma/chat/thread_panel.html Wed May 21 15:41:00 2025 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ - diff -r 5016fb0ff62f -r 049a0638f6fa sat_templates/templates/bulma/dialogs/modal.html --- a/sat_templates/templates/bulma/dialogs/modal.html Wed May 21 15:41:00 2025 +0200 +++ b/sat_templates/templates/bulma/dialogs/modal.html Fri Jun 06 10:50:35 2025 +0200 @@ -1,8 +1,15 @@ -