Commit 8d7ac268 authored by Volker Krause's avatar Volker Krause
Browse files

Make HTML and external reference warnings more distinguishable

Summary:
Those have significantly different severity, so show them in different
colors and use different icons.

Reviewers: mlaurent

Reviewed By: mlaurent

Subscribers: ognarb, mlaurent, kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D27761
parent 2036c388
{% if not block.isPrinting %}
{% if not block.htmlMail or not block.loadExternal and block.containsExternalReferences %}
<div class="inlineMessageError">
{% if not block.htmlMail %}
{% if not block.htmlMail %}
<div class="inlineMessageWarning">
<div style="float:left; padding-right:10px;">{% icon "dialog-xml-editor" large %}</div>
{% i18n_var "<b>Note:</b> This is an HTML message. For security reasons, only the raw HTML code is shown. If you trust the sender of this message then you can activate formatted HTML display for this message <a href='kmail:showHTML'>by clicking here</a>." as msg %}
{% elif not block.loadExternal and block.containsExternalReferences %}
{{ msg|safe }}
</div>
{% elif not block.loadExternal and block.containsExternalReferences %}
<div class="inlineMessageError">
<div style="float:left; padding-right:10px;">{% icon "network-wireless" large %}</div>
{% i18n_var "<b>Note:</b> This HTML message may contain external references to images etc. For security/privacy reasons external references are not loaded. If you trust the sender of this message then you can load the external references for this message <a href='kmail:loadExternal'>by clicking here</a>." as msg %}
{% endif %}
{{ msg|safe }}
</div>
{{ msg|safe }}
</div>
{% endif %}
<br />
<br />
{% endif %}
......
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