Commit 14c4d3da authored by Laurent Montel's avatar Laurent Montel 😁

Don't show a big icon

parent 2b1cd557
...@@ -914,6 +914,7 @@ public: ...@@ -914,6 +914,7 @@ public:
block.setProperty("decryptIcon", QUrl::fromLocalFile(IconNameCache::instance()->iconPath(QStringLiteral("document-decrypt"), KIconLoader::Small)).url()); block.setProperty("decryptIcon", QUrl::fromLocalFile(IconNameCache::instance()->iconPath(QStringLiteral("document-decrypt"), KIconLoader::Small)).url());
block.setProperty("errorText", metaData.errorText); block.setProperty("errorText", metaData.errorText);
block.setProperty("noSecKey", mp->mNoSecKey); block.setProperty("noSecKey", mp->mNoSecKey);
block.setProperty("iconSize", MessageViewer::MessagePartRendererManager::self()->iconCurrentSize());
const auto html = t->render(&c); const auto html = t->render(&c);
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
{% i18n "This message is encrypted." %} {% i18n "This message is encrypted." %}
</div> </div>
<div style="text-align:center; padding-bottom:20pt;"> <div style="text-align:center; padding-bottom:20pt;">
<a href="kmail:decryptMessage"> <img src="{{block.decryptIcon}}"/> {% i18n "Decrypt Message" %} </a>
<a href="kmail:decryptMessage"> <img src="{{block.decryptIcon}}" height="{{block.iconSize}}" width="{{block.iconSize}}"/> {% i18n "Decrypt Message" %} </a>
</div> </div>
{% else %} {% else %}
<table cellspacing="1" cellpadding="1" class="encr"> <table cellspacing="1" cellpadding="1" class="encr">
...@@ -45,4 +46,4 @@ ...@@ -45,4 +46,4 @@
<td dir="{{block.dir}}">{% i18n "End of encrypted message" %}</td> <td dir="{{block.dir}}">{% i18n "End of encrypted message" %}</td>
</tr> </tr>
</table> </table>
{% endif %} {% endif %}
\ No newline at end of file
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