summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/linkinfo.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/ui/linkinfo.c b/src/ui/linkinfo.c
index 72abea1a..38da84c7 100644
--- a/src/ui/linkinfo.c
+++ b/src/ui/linkinfo.c
@@ -78,13 +78,6 @@ iBool update_LinkInfo(iLinkInfo *d, const iGmDocument *doc, iGmLinkId linkId, in
78// int fg = linkColor_GmDocument(doc, linkId, textHover_GmLinkPart); 78// int fg = linkColor_GmDocument(doc, linkId, textHover_GmLinkPart);
79 iString str; 79 iString str;
80 init_String(&str); 80 init_String(&str);
81 /* Identity that will be used. */
82 const iGmIdentity *ident = identityForUrl_GmCerts(certs_App(), url);
83 if (ident) {
84 appendFormat_String(&str, person_Icon " %s",
85 //escape_Color(tmBannerItemTitle_ColorId),
86 cstr_String(name_GmIdentity(ident)));
87 } /* Show scheme and host. */
88 if ((showHost || 81 if ((showHost ||
89 (flags & (imageFileExtension_GmLinkFlag | audioFileExtension_GmLinkFlag))) && 82 (flags & (imageFileExtension_GmLinkFlag | audioFileExtension_GmLinkFlag))) &&
90 scheme != mailto_GmLinkScheme) { 83 scheme != mailto_GmLinkScheme) {
@@ -133,6 +126,17 @@ iBool update_LinkInfo(iLinkInfo *d, const iGmDocument *doc, iGmLinkId linkId, in
133 append_String(&str, dateStr); 126 append_String(&str, dateStr);
134 delete_String(dateStr); 127 delete_String(dateStr);
135 } 128 }
129 /* Identity that will be used. */
130 const iGmIdentity *ident = identityForUrl_GmCerts(certs_App(), url);
131 if (ident) {
132 if (!isEmpty_String(&str)) {
133 appendCStr_String(&str, " \u2014 ");
134 }
135 appendFormat_String(&str, person_Icon " %s",
136 //escape_Color(tmBannerItemTitle_ColorId),
137 cstr_String(name_GmIdentity(ident)));
138 }
139 /* Show scheme and host. */
136 if (!isEmpty_String(&str)) { 140 if (!isEmpty_String(&str)) {
137 appendCStr_String(&str, "\n"); 141 appendCStr_String(&str, "\n");
138 } 142 }