Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 0c0a9626 authored by Laurent Montel's avatar Laurent Montel 😁

Fix attachments position

parent 20bf1156
......@@ -356,6 +356,7 @@ QString GrantleeHeaderFormatter::format(const QString &absolutePath, const Grant
const bool messageHasAttachment = KMime::hasAttachment(message) || !attachmentHtml.isEmpty();
headerObject.insert(QStringLiteral("hasAttachment"), messageHasAttachment);
headerObject.insert(QStringLiteral("attachmentHtml"), attachmentHtml);
headerObject.insert(QStringLiteral("attachmentI18n"), i18n("Attachments:"));
if (messageHasAttachment) {
const QString iconPath
......
......@@ -78,10 +78,14 @@
</div>
</div>
{% endif %}
</div>
{% if header.hasAttachment %}
<div>{{ header.attachmentHtml|safe }}</div>
{% endif %}
</div>
{% if header.hasAttachment %}
<div class="row">
<div class="headerleft">{{ header.attachmentI18n }}</div>
<div class="headerright">{{ header.attachmentHtml|safe }}</div>
</div>
{% endif %}
</div>
</div>
</div>
<div id="kmailContent">
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment