Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Patch untruncated subject in the sent tab Update email_list.html , and email header Update headers.html #228

Merged
merged 6 commits into from
May 4, 2022

Conversation

mohamed-ghayyad
Copy link
Contributor

@mohamed-ghayyad mohamed-ghayyad commented Jan 31, 2022

Fixed untruncated subject in the sent tab in webmail and Email Headers

Fixed untruncated subject in the sent tab in webmail
@tonioo
Copy link
Member

tonioo commented Jan 31, 2022

See #229

in
-      <td>{% if hdr.safe %}{{ hdr.value|safe }}{% else %}{{ hdr.value }}{% endif %}</td>
+     <td>{% if hdr.safe %}
+      {% if hdr.value|length > 100 %}
+        {{ hdr.value|safe|truncatechars_html:100 }}
 +       {% else %}
 +      {{ hdr.value|safe }}
 +       {% endif %}
 +    {% elif hdr.value|length > 100 %}
 +     {{ hdr.value|truncatechars_html:100}}
 +    {% else %}
 +     {{ hdr.value}}
  +    {% endif %}</td>
@mohamed-ghayyad mohamed-ghayyad changed the title Patch untruncated subject in the sent tab Update email_list.html Patch untruncated subject in the sent tab Update email_list.html , and email header Update headers.html Feb 8, 2022
@mohamed-ghayyad
Copy link
Contributor Author

issue:
#230
Patch result:
https://i.imgur.com/fE4jOzH.png

@tonioo tonioo merged commit 4594a52 into modoboa:master May 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants