| {% if block.technicalProblem %}
                        {{block.errorText|safe}}
                    {% elif block.showKeyInfos %}
                        {% if block.cannotCheckSignature %}
                            {% i18n_var "Not enough information to check signature. %1" block.keyWithWithoutURL as signed %}
                            {{signed|safe}}
                        {% else %}
                            {% if not block.keyId %}
                                {% if block.signer and block.onlyShowKeyURL %}
                                    {% i18n "Message was signed by %1." block.signer %}
                                {% else %}
                                    {% i18n "Message was signed with unknown key." %}
                                {% endif %}
                            {% else %}
                                {% if block.creationTime %}
                                    {% if block.signer %}
                                        {% if block.onlyShowKeyURL %}
                                            {% i18n_var "Message was signed with key %1." block.keyWithWithoutURL as signed %}
                                            {{signed|safe}}
                                        {% else %}
                                            {% i18n_var "Message was signed by %3 on %1 with key %2" block.creationTime block.keyWithWithoutURL block.signer as signed %}
                                            {{signed|safe}}
                                        {% endif %}
                                    {% else %}
                                        {% if block.onlyShowKeyURL %}
                                            {% i18n_var "Message was signed with key %1." block.keyWithWithoutURL as signed %}
                                            {{signed|safe}}
                                        {% else %}
                                            {% i18n_var "Message was signed on %1 with key %2." block.creationTime block.keyWithWithoutURL as signed %}
                                            {{signed|safe}}
                                        {% endif %}
                                    {% endif %}
                                {% else %}
                                    {% if block.signer and block.onlyShowKeyURL %}
                                        {% i18n_var "Message was signed by %2 with key %1." block.keyWithWithoutURL block.signer as signed %}
                                        {{signed|safe}}
                                    {% else %}
                                        {% i18n_var "Message was signed with key %1." block.keyWithWithoutURL as signed %}
                                        {{signed|safe}}
                                    {% endif %}
                                {% endif %}
                            {% endif %}
                        {% endif %} {% if not block.isPrinting %}{% if block.statusStr %} {% i18n "Status: " %} {{block.statusStr|safe}} {% if block.greenCaseWarning %} {{block.greenCaseWarning|safe}} {% endif %} {% else %} {{block.greenCaseWarning|safe}} {% endif %} {% else %} {{block.statusStr}} {% endif %} | {% i18n "Hide Details" %}{% endif %} | |
| {{block.auditlog}}{% elif block.detailHeader %} | {% if block.signClass == "signWarn" %}
                            {% if block.technicalProblem %}
                                {{block.errorText|safe}}
                            {% else %}
                            {% if block.keyId %}
                                {% if block.creationTime %}
                                    {% i18n_var "Message was signed on %1 with unknown key %2." block.creationTime block.keyWithWithoutURL as signed %}
                                    {{signed|safe}}
                                {% else %} 
                                    {% i18n_var "Message was signed with unknown key %1." block.keyWithWithoutURL as signed %}
                                    {{signed|safe}}
                                {% endif %}
                            {% else %}
                                {% i18n "Message was signed with unknown key." %}
                            {% endif %} {% if not block.isPrinting %}{% i18n "The validity of the signature cannot be verified." %} {% if block.statusStr %} {% i18n "Status: " %} {{block.statusStr|safe}} {% endif %} {% endif %} {% else %} {% if block.isGoodSignature %} {% if block.keyId %} {% i18n_var "Message was signed by %2 (Key ID: %1)." block.keyWithWithoutURL block.signer as signed %} {{signed|safe}} {% else %} {% i18n "Message was signed by %1." block.signer %} {% endif %} {% if block.keyTrust == "unknown" %} {% i18n "The signature is valid, but the key's validity is unknown." %} {% elif block.keyTrust == "marginal" %} {% i18n "The signature is valid and the key is marginally trusted." %} {% elif block.keyTrust == "full" %} {% i18n "The signature is valid and the key is fully trusted." %} {% elif block.keyTrust == "ultimate" %} {% i18n "The signature is valid and the key is ultimately trusted." %} {% else %} {% i18n "The signature is valid, but the key is untrusted." %} {% endif %} {% else %} {% if block.keyId %} {% i18n_var "Message was signed by %2 (Key ID: %1)." block.keyWithWithoutURL block.signer as signed %} {{signed|safe}} {% else %} {% i18n "Message was signed by %1." block.signer %} {% endif %} {% i18n "Warning: The signature is bad." %} {% endif %} {% endif %} | {% i18n "Hide Details" %}{% endif %} | 
| {{block.auditlog}}{% else %} | {% if block.signClass == "signErr" %} {% i18n "Invalid signature." %} {% elif block.signClass == "signOkKeyBad" or block.signClass == "signWarn" %} {% i18n "Not enough information to check signature validity." %} {% elif block.signClass == "signOkKeyOk" %} {% if block.addr %} {% i18n_var "Signed by %1." block.addr as signed %} {{ signed|safe }} {% else %} {% i18n "Signature is valid." %} {% endif %} {% else %} {% i18n "Unknown signature state" %} {% endif %}{% if not block.isPrinting %} | {% i18n "Show Details" %}{% endif %} {% endif %} |