| | @@ -478,11 +478,11 @@ |
| 478 | 478 | @ </td></tr> |
| 479 | 479 | @ |
| 480 | 480 | @ <th1> |
| 481 | 481 | @ if {[info exists comment] && [string length $comment]>10} { |
| 482 | 482 | @ html { |
| 483 | | -@ <tr><td colspan="5">Legacy Description & Comments:</td></tr> |
| 483 | +@ <tr><td class="tktDspLabel">Description:</td></tr> |
| 484 | 484 | @ <tr><td colspan="5" class="tktDspValue"> |
| 485 | 485 | @ } |
| 486 | 486 | @ if {[info exists plaintext]} { |
| 487 | 487 | @ set r [randhex] |
| 488 | 488 | @ wiki "<verbatim-$r links>\n$comment\n</verbatim-$r>" |
| | @@ -491,23 +491,29 @@ |
| 491 | 491 | @ } |
| 492 | 492 | @ } |
| 493 | 493 | @ set seenRow 0 |
| 494 | 494 | @ set alwaysPlaintext [info exists plaintext] |
| 495 | 495 | @ query {SELECT datetime(tkt_mtime) AS xdate, login AS xlogin, |
| 496 | | -@ mimetype as xmimetype, icomment AS xcomment |
| 496 | +@ mimetype as xmimetype, icomment AS xcomment, |
| 497 | +@ username AS xusername |
| 497 | 498 | @ FROM ticketchng |
| 498 | 499 | @ WHERE tkt_id=$tkt_id} { |
| 499 | 500 | @ if {$seenRow} { |
| 500 | 501 | @ html "<hr>\n" |
| 501 | 502 | @ } else { |
| 502 | | -@ html "<tr><th>User Comments:</td></tr>\n" |
| 503 | +@ html "<tr><td class='tktDspLabel'>User Comments:</td></tr>\n" |
| 503 | 504 | @ html "<tr><td colspan='5' class='tktDspValue'>\n" |
| 504 | 505 | @ set seenRow 1 |
| 505 | 506 | @ } |
| 506 | | -@ html "[htmlize $xlogin] added on $xdate:\n" |
| 507 | +@ html "[htmlize $xlogin]" |
| 508 | +@ if {$xlogin ne $xusername && [string length $xusername]>0} { |
| 509 | +@ html " (claiming to be [htmlize $xusername])" |
| 510 | +@ } |
| 511 | +@ html " added on $xdate:\n" |
| 507 | 512 | @ if {$alwaysPlaintext || $xmimetype eq "text/plain"} { |
| 508 | 513 | @ set r [randhex] |
| 514 | +@ if {$xmimetype ne "text/plain"} {html "([htmlize $xmimetype])\n"} |
| 509 | 515 | @ wiki "<verbatim-$r>[string trimright $xcomment]</verbatim-$r>\n" |
| 510 | 516 | @ } elseif {$xmimetype eq "text/x-fossil-wiki"} { |
| 511 | 517 | @ wiki "<p>\n[string trimright $xcomment]\n</p>\n" |
| 512 | 518 | @ } elseif {$xmimetype eq "text/html"} { |
| 513 | 519 | @ wiki "<p><nowiki>\n[string trimright $xcomment]\n</nowiki>\n" |
| | @@ -514,12 +520,12 @@ |
| 514 | 520 | @ } else { |
| 515 | 521 | @ set r [randhex] |
| 516 | 522 | @ wiki "<verbatim-$r links>[string trimright $xcomment]</verbatim-$r>\n" |
| 517 | 523 | @ } |
| 518 | 524 | @ } |
| 525 | +@ if {$seenRow} {html "</td></tr>\n"} |
| 519 | 526 | @ </th1> |
| 520 | | -@ </td></tr> |
| 521 | 527 | @ </table> |
| 522 | 528 | ; |
| 523 | 529 | |
| 524 | 530 | |
| 525 | 531 | /* |
| 526 | 532 | |