#### $

Ticket UUID
    if {[info exists tkt_uuid]} {
      if {[hascap s]} {
        html "
| $tkt_uuid " html "($tkt_id)
\n" } else { html " | $tkt_uuid
    \n"
      }
    } else {
      if {[hascap s]} {
        html "
| Deleted " html "(0)\n" } else { html " | Deleted\n" } }
Status | $ | Type | $
Severity | $ | Priority | $
Subsystem | $ | Resolution | $
Last Modified | if {[info exists tkt_datetime]} { html $tkt_datetime } enable_output [hascap e] | Contact | $ enable_output 1
Version Found In | $
    if {[info exists comment]} {
      if {[string length $comment]>10} {
        html {
Description | } if {[info exists plaintext]} { set r [randhex] wiki "\n$comment\n" } else { wiki $comment } html "
\n" } }

set seenRow 0 set alwaysPlaintext [info exists plaintext] query {SELECT datetime(tkt_mtime) AS xdate, login AS xlogin, mimetype as xmimetype, icomment AS xcomment, username AS xusername FROM ticketchng WHERE tkt_id=$tkt_id AND length(icomment)>0} { if {$seenRow eq "0"} { html "

##### User Comments

\n" set seenRow 1 } html "
\n" html "
\n" html "
$xdate
\n" html "[htmlize $xlogin]
    "
      if {$xlogin ne $xusername && [string length $xusername]>0} {
        html " (claiming to be
[htmlize $xusername])" } html " commented
\n" html "
    \n"
      if {$alwaysPlaintext || $xmimetype eq "text/plain"} {
        set r [randhex]
        if {$xmimetype ne "text/plain"} {html "([htmlize $xmimetype])\n"}
        wiki "
[string trimright $xcomment]\n" } elseif {$xmimetype eq "text/x-fossil-wiki"} { wiki "

\n[string trimright $xcomment]\n

\n" } elseif {$xmimetype eq "text/html"} { wiki "

\n[string trimright $xcomment]\n

\n" } else { set r [randhex] wiki "[string trimright $xcomment]\n" } html "
\n" html "
\n" }