diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-04-10 19:05:10 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-04-10 19:05:10 +0200 |
commit | b73ed6ebd3cca86de065549cfb0d109a1d0461c5 (patch) | |
tree | 72e601618b215599cc6646bd2c6df058b053406f /src/jwebmail/templates | |
parent | f06e7e51f84e9260410108ed527f3c8cbe28fbdd (diff) |
split js files and do local time conversion
Diffstat (limited to 'src/jwebmail/templates')
-rw-r--r-- | src/jwebmail/templates/_main_table.html | 7 | ||||
-rw-r--r-- | src/jwebmail/templates/displayheaders.html | 8 | ||||
-rw-r--r-- | src/jwebmail/templates/readmail.html | 5 |
3 files changed, 17 insertions, 3 deletions
diff --git a/src/jwebmail/templates/_main_table.html b/src/jwebmail/templates/_main_table.html index 35fdeec..700d77c 100644 --- a/src/jwebmail/templates/_main_table.html +++ b/src/jwebmail/templates/_main_table.html @@ -18,7 +18,9 @@ <div class="column is-2"> {% if msg.head.date %} - {{ parse_iso_date(msg.head.date)|datetimeformat }} + <time datetime="{{msg.head.date}}" class=jwm-tolocaltime> + {{ parse_iso_date(msg.head.date)|datetimeformat }} + </time> {% else %} {{ gettext("unknown") }} {% endif %} @@ -37,7 +39,8 @@ </div> <div class=media-right> - <input type="checkbox" name="{{ msg.message_handle }}" form="move-mail remove-mail" class="jwm-mail-checkbox"> + <input type="checkbox" name="{{ msg.message_handle }}" form="move-mail remove-mail" + class="jwm-mail-checkbox"> </div> </tag> diff --git a/src/jwebmail/templates/displayheaders.html b/src/jwebmail/templates/displayheaders.html index 7125a12..36a1f68 100644 --- a/src/jwebmail/templates/displayheaders.html +++ b/src/jwebmail/templates/displayheaders.html @@ -1,7 +1,13 @@ {% extends 'mainlayout.html' %} {% block scripts %} - <script src="{{ url_for('static', filename='src/displayheaders.js') }}" defer> + <script src="{{ url_for('static', filename='src/dh-select-all-mails.js') }}" defer> + </script> + <script src="{{ url_for('static', filename='src/dh-toggle-navbar.js') }}" defer> + </script> + <script src="{{ url_for('static', filename='src/dh-submit-sort-on-change.js') }}" defer> + </script> + <script src="{{ url_for('static', filename='src/localtime.js') }}" defer> </script> {% endblock %} diff --git a/src/jwebmail/templates/readmail.html b/src/jwebmail/templates/readmail.html index f41197a..75b0b13 100644 --- a/src/jwebmail/templates/readmail.html +++ b/src/jwebmail/templates/readmail.html @@ -1,5 +1,10 @@ {% extends 'mainlayout.html' %} +{% block scripts %} + <script src="{{ url_for('static', filename='src/multipart-alt-tabs.js') }}" defer> + </script> +{% endblock %} + {% block content %} <div class="section container"> |