Fossil Forum

Wrap ticket commenter information in span to allow skinning
Login

Wrap ticket commenter information in span to allow skinning

(1) By anonymous on 2021-10-16 01:40:19 [source]

This wraps the "anonymous added on 2021-10-16 00:00:00:" line in a span with class="tktDspComment" to allow for skinning.

Index: src/tktsetup.c
==================================================================
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -537,15 +537,17 @@
 @   } else {
 @     html "<tr><td class='tktDspLabel'>User Comments:</td></tr>\n"
 @     html "<tr><td colspan='5' class='tktDspValue'>\n"
 @     set seenRow 1
 @   }
+@   html "<span class='tktDspComment'>"
 @   html "[htmlize $xlogin]"
 @   if {$xlogin ne $xusername && [string length $xusername]>0} {
 @     html " (claiming to be [htmlize $xusername])"
 @   }
-@   html " added on $xdate:\n"
+@   html " added on $xdate:"
+@   html "</span>\n"
 @   if {$alwaysPlaintext || $xmimetype eq "text/plain"} {
 @     set r [randhex]
 @     if {$xmimetype ne "text/plain"} {html "([htmlize $xmimetype])\n"}
 @     wiki "<verbatim-$r>[string trimright $xcomment]</verbatim-$r>\n"
 @   } elseif {$xmimetype eq "text/x-fossil-wiki"} {

(2) By Stephan Beal (stephan) on 2021-10-16 06:59:35 in reply to 1 [link] [source]

This wraps the "anonymous added on 2021-10-16 00:00:00:" line in a span with class="tktDspComment" to allow for skinning.

Done, but i went with tktDspCommenter rather than tktDspComment, as the subject line of your post suggests. Though the mysterious, perhaps hypothetical, difference between "commentor" and "commenter" has always kind of bugged me, i chose the latter because it's the only form i'm finding in widespread use online.