Commit 4eb88e6d authored by Sandro Knauß's avatar Sandro Knauß

make show detail tests get passes mostly

parent 3cba5103
<a name="att{{block.index}}"></a>
<div id="attachmentDiv{{block.index}}">
{{content|safe}}
</div>
\ No newline at end of file
......@@ -658,6 +658,8 @@ public:
block.setProperty("keyId", metaData.keyId);
block.setProperty("creationTime", metaData.creationTime);
block.setProperty("isGoodSignature", metaData.isGoodSignature);
block.setProperty("isSMIME", isSMIME);
if (metaData.keyTrust == GpgME::Signature::Unknown) {
block.setProperty("keyTrust", QStringLiteral("unknown"));
} else if (metaData.keyTrust == GpgME::Signature::Marginal) {
......@@ -693,6 +695,7 @@ public:
QString signer = metaData.signer;
QString statusStr;
QString mClass;
QString greenCaseWarning;
if (metaData.inProgress) {
mClass = QStringLiteral("signInProgress");
......@@ -749,7 +752,6 @@ public:
mClass = QStringLiteral("signOkKeyOk");
// extra hint for green case
// that email addresses in DN do not match fromAddress
QString greenCaseWarning;
QString msgFrom(KEmailAddress::extractEmailAddress(mp->mFromAddress));
QString certificate;
if (metaData.keyId.isEmpty()) {
......@@ -796,12 +798,6 @@ public:
certificate,
msgFrom);
}
if (!greenCaseWarning.isEmpty()) {
if (!statusStr.isEmpty()) {
statusStr.append(QStringLiteral("<br />&nbsp;<br />"));
}
statusStr.append(greenCaseWarning);
}
break;
}
......@@ -842,6 +838,7 @@ public:
block.setProperty("signer", signer);
block.setProperty("statusStr", statusStr);
block.setProperty("signClass", mClass);
block.setProperty("greenCaseWarning", greenCaseWarning);
const auto html = t->render(&c);
......
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