summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-18 19:16:48 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-18 19:16:48 +0200
commit5ba0ab94a5fda3eb83885bf33f552f296bb13669 (patch)
tree5692175f7efa6f45cb42053833750da28cd85362 /src/ui
parent5f7709f0b84e74fde847cdcf02c41990ef037daa (diff)
LinkInfo: Identity at end of first line
Diffstat (limited to 'src/ui')
-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 }