# HG changeset patch # User Goffi # Date 1701190080 -3600 # Node ID e63fb06052aeaba93bf34c7aba4e658dfac26fa0 # Parent 941e4006ab6ecbc9f6907945cd240c3cd3e253fb bulma: message edition + extra menu + improvments: - add an extra menu template with `Edit` and `Quote` - add a template for previous editions popup - fix `own_msg` class application - add CSS for edit mode - cosmetic changes diff -r 941e4006ab6e -r e63fb06052ae sat_templates/templates/bulma/chat/chat.html --- a/sat_templates/templates/bulma/chat/chat.html Wed Nov 22 15:22:11 2023 +0100 +++ b/sat_templates/templates/bulma/chat/chat.html Tue Nov 28 17:48:00 2023 +0100 @@ -3,7 +3,8 @@ {% block body %} {{ icon_defs( "lock-open", "lock-filled", "ok", "pencil", "dot-3", "share", "attach", - "paper-plane-empty", "doc", "download", "wrench", "eye", "smile", "plus-circled" + "paper-plane-empty", "doc", "download", "wrench", "eye", "smile", "plus-circled", + "quote-left" ) }} {# TODO: this should be done in a more generic way in dialog module #} diff -r 941e4006ab6e -r e63fb06052ae sat_templates/templates/bulma/chat/editions.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/chat/editions.html Tue Nov 28 17:48:00 2023 +0100 @@ -0,0 +1,12 @@ + + + diff -r 941e4006ab6e -r e63fb06052ae sat_templates/templates/bulma/chat/extra_menu.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/chat/extra_menu.html Tue Nov 28 17:48:00 2023 +0100 @@ -0,0 +1,16 @@ +
+ +
diff -r 941e4006ab6e -r e63fb06052ae sat_templates/templates/bulma/chat/message.html --- a/sat_templates/templates/bulma/chat/message.html Wed Nov 22 15:22:11 2023 +0100 +++ b/sat_templates/templates/bulma/chat/message.html Tue Nov 28 17:48:00 2023 +0100 @@ -1,6 +1,19 @@ {% import 'components/avatar.html' as avatar with context %} -
+{% if chat_type == "group" %} + {% set own_msg = msg.from_==own_jid %} +{% else %} + {% set own_msg = msg.from_|bare_jid==own_jid|bare_jid %} +{% endif %} + +
{%- if msg.type != "info" %} {%- set author = identities[msg.from_].nicknames[0] | default(msg.from_) -%}
@@ -10,7 +23,7 @@
{%- if msg.type != "info" %} -