Fossil SCM

In the default ticket view, add a SPAN with CSS class tktDspCommenter around the commenter's name, per suggestion in [forum:491ed22f44|forum post 491ed22f44].

stephan 2021-10-16 06:59 trunk
Commit 9f53093dca13c13d573fafc3bbb30c16ca5499ea20594735e6d5810621e8a7bc
1 file changed +3 -1
+3 -1
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -537,15 +537,17 @@
537537
@ } else {
538538
@ html "<tr><td class='tktDspLabel'>User Comments:</td></tr>\n"
539539
@ html "<tr><td colspan='5' class='tktDspValue'>\n"
540540
@ set seenRow 1
541541
@ }
542
+@ html "<span class='tktDspCommenter'>"
542543
@ html "[htmlize $xlogin]"
543544
@ if {$xlogin ne $xusername && [string length $xusername]>0} {
544545
@ html " (claiming to be [htmlize $xusername])"
545546
@ }
546
-@ html " added on $xdate:\n"
547
+@ html " added on $xdate:"
548
+@ html "</span>\n"
547549
@ if {$alwaysPlaintext || $xmimetype eq "text/plain"} {
548550
@ set r [randhex]
549551
@ if {$xmimetype ne "text/plain"} {html "([htmlize $xmimetype])\n"}
550552
@ wiki "<verbatim-$r>[string trimright $xcomment]</verbatim-$r>\n"
551553
@ } elseif {$xmimetype eq "text/x-fossil-wiki"} {
552554
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -537,15 +537,17 @@
537 @ } else {
538 @ html "<tr><td class='tktDspLabel'>User Comments:</td></tr>\n"
539 @ html "<tr><td colspan='5' class='tktDspValue'>\n"
540 @ set seenRow 1
541 @ }
 
542 @ html "[htmlize $xlogin]"
543 @ if {$xlogin ne $xusername && [string length $xusername]>0} {
544 @ html " (claiming to be [htmlize $xusername])"
545 @ }
546 @ html " added on $xdate:\n"
 
547 @ if {$alwaysPlaintext || $xmimetype eq "text/plain"} {
548 @ set r [randhex]
549 @ if {$xmimetype ne "text/plain"} {html "([htmlize $xmimetype])\n"}
550 @ wiki "<verbatim-$r>[string trimright $xcomment]</verbatim-$r>\n"
551 @ } elseif {$xmimetype eq "text/x-fossil-wiki"} {
552
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -537,15 +537,17 @@
537 @ } else {
538 @ html "<tr><td class='tktDspLabel'>User Comments:</td></tr>\n"
539 @ html "<tr><td colspan='5' class='tktDspValue'>\n"
540 @ set seenRow 1
541 @ }
542 @ html "<span class='tktDspCommenter'>"
543 @ html "[htmlize $xlogin]"
544 @ if {$xlogin ne $xusername && [string length $xusername]>0} {
545 @ html " (claiming to be [htmlize $xusername])"
546 @ }
547 @ html " added on $xdate:"
548 @ html "</span>\n"
549 @ if {$alwaysPlaintext || $xmimetype eq "text/plain"} {
550 @ set r [randhex]
551 @ if {$xmimetype ne "text/plain"} {html "([htmlize $xmimetype])\n"}
552 @ wiki "<verbatim-$r>[string trimright $xcomment]</verbatim-$r>\n"
553 @ } elseif {$xmimetype eq "text/x-fossil-wiki"} {
554

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button