Differential D8110 Diff 21394 messageviewer/src/messagepartthemes/default/templates/encryptedmessagepart.html
Changeset View
Changeset View
Standalone View
Standalone View
messageviewer/src/messagepartthemes/default/templates/encryptedmessagepart.html
1 | {% if not block.isDecrypted %} | 1 | {% if not block.isDecrypted %} | ||
---|---|---|---|---|---|
2 | <div style="font-size:large; text-align:center; padding-top:20pt;"> | 2 | <div style="font-size:large; text-align:center; padding-top:20pt;"> | ||
3 | {% i18n "This message is encrypted." %} | 3 | {% i18n "This message is encrypted." %} | ||
4 | </div> | 4 | </div> | ||
5 | <div style="text-align:center; padding-bottom:20pt;"> | 5 | <div style="text-align:center; padding-bottom:20pt;"> | ||
6 | 6 | | |||
7 | <a href="kmail:decryptMessage"> <img src="{{block.decryptIcon}}" height="{{global.iconSize}}" width="{{global.iconSize}}"/> {% i18n "Decrypt Message" %} </a> | 7 | <a href="kmail:decryptMessage"> <img src="{{block.decryptIcon}}" height="{{global.iconSize}}" width="{{global.iconSize}}"/> {% i18n "Decrypt Message" %} </a> | ||
8 | </div> | 8 | </div> | ||
9 | {% else %} | 9 | {% else %} | ||
10 | <table cellspacing="1" cellpadding="1" class="encr"> | 10 | <table cellspacing="1" cellpadding="1" class="encr"> | ||
11 | <tr class="encrH"> | 11 | <tr class="encrH"> | ||
12 | <td dir="{{global.dir}}"> | 12 | <td dir="{{global.dir}}"> | ||
13 | {% if block.inProgress %} | 13 | {% if block.inProgress %} | ||
14 | {% i18n "Please wait while the message is being decrypted..." %} | 14 | {% i18n "Please wait while the message is being decrypted..." %} | ||
15 | {% elif block.isDecryptable %} | 15 | {% elif block.isDecryptable %} | ||
16 | <div class="enc-simple"> | ||||
16 | {% i18n "Encrypted message" %} | 17 | {% i18n "Encrypted message" %} | ||
18 | <a href="kmail:showEncryptionDetails" style="display:block;float:right;">{% i18n "Show Details" %}</a> | ||||
19 | </div> | ||||
20 | <div class="enc-details" style="display:none;"> | ||||
21 | {% i18n "The message is encrypted for the following keys:" %} | ||||
22 | {% if not block.printing %} | ||||
23 | <a href="kmail:hideEncryptionDetails" style="display:block;float:right;">{% i18n "Hide Details" %}</a> | ||||
24 | {% endif %} | ||||
25 | <ul style="list-style-type: none;"> | ||||
26 | {% for recipient in decryptedRecipients %} | ||||
27 | {%if recipient.mainID %} | ||||
28 | <li>{{recipient.id}} (<a href="kmail:showCertificate#{{cryptoProto.displayName}} ### {{cryptoProto.name}} ### {{recipient.mainID}}">0x{{recipient.mainID}}</a>)</li> | ||||
29 | {% else %} | ||||
30 | <li><a href="kmail:showCertificate#{{cryptoProto.displayName}} ### {{cryptoProto.name}} ### {{recipient.keyID}}">0x{{recipient.keyID}}</a> ({% i18n "unknown key" %})</li> | ||||
31 | {% endif %} | ||||
32 | {% endfor %} | ||||
33 | </ul> | ||||
34 | </div> | ||||
17 | {% else %} | 35 | {% else %} | ||
18 | {% i18n "Encrypted message (decryption not possible)" %} | 36 | {% i18n "Encrypted message (decryption not possible)" %} | ||
19 | {% if block.errorText %} | 37 | {% if block.errorText %} | ||
20 | <br /> | 38 | <br /> | ||
21 | {% i18n "Reason: " %}{{block.errorText|safe}} | 39 | {% i18n "Reason: " %}{{block.errorText|safe}} | ||
22 | {% endif %} | 40 | {% endif %} | ||
23 | {% endif %} | 41 | {% endif %} | ||
24 | </td> | 42 | </td> | ||
25 | </tr> | 43 | </tr> | ||
26 | <tr class="encrB"> | 44 | <tr class="encrB"> | ||
27 | <td> | 45 | <td> | ||
28 | {% if block.isDecryptable %} | 46 | {% if block.isDecryptable %} | ||
29 | {% callback content %} | 47 | {% callback content %} | ||
30 | {% else %} | 48 | {% else %} | ||
31 | <div style="font-size:x-large; text-align:center; padding:20pt;"> | 49 | <div style="font-size:x-large; text-align:center; padding:20pt;"> | ||
32 | {% if block.noSecKey %} | 50 | {% if block.noSecKey %} | ||
33 | {% i18n "No secret key found to encrypt the message. It is encrypted for following keys:" %} | 51 | {% i18n "No secret key found to decrypt the message. The message is encrypted for the following keys:" %} | ||
52 | <ul style="list-style-type: none;"> | ||||
34 | {% for recipient in decryptedRecipients %} | 53 | {% for recipient in decryptedRecipients %} | ||
35 | <br /> | 54 | {%if recipient.mainID %} | ||
36 | <a href="kmail:showCertificate#{{cryptoProto.displayName}} ### {{cryptoProto.name}} ### {{recipient.keyID}}">0x{{recipient.keyID}}</a> | 55 | <li>{{recipient.id}} (<a href="kmail:showCertificate#{{cryptoProto.displayName}} ### {{cryptoProto.name}} ### {{recipient.mainID}}">0x{{recipient.mainID}}</a>)</li> | ||
56 | {% else %} | ||||
57 | <li><a href="kmail:showCertificate#{{cryptoProto.displayName}} ### {{cryptoProto.name}} ### {{recipient.keyID}}">0x{{recipient.keyID}}</a> ({% i18n "unknown key" %})</li> | ||||
58 | {% endif %} | ||||
37 | {% endfor %} | 59 | {% endfor %} | ||
60 | </ul> | ||||
38 | {% elif not block.inProgress %} | 61 | {% elif not block.inProgress %} | ||
39 | {% i18n "Could not decrypt the data." %} | 62 | {% i18n "Could not decrypt the data." %} | ||
40 | {% endif %} | 63 | {% endif %} | ||
41 | </div> | 64 | </div> | ||
42 | {% endif %} | 65 | {% endif %} | ||
43 | </td> | 66 | </td> | ||
44 | </tr> | 67 | </tr> | ||
45 | <tr class="encrH"> | 68 | <tr class="encrH"> | ||
46 | <td dir="{{global.dir}}">{% i18n "End of encrypted message" %}</td> | 69 | <td dir="{{global.dir}}">{% i18n "End of encrypted message" %}</td> | ||
47 | </tr> | 70 | </tr> | ||
48 | </table> | 71 | </table> | ||
49 | {% endif %} | 72 | {% endif %} |