Hi Bjorn,

I think you can just copy the relevant part of the View Ticket page into
the Edit page. See below what I did.

  Cheers,
  Jacek

<!-- Copied from the View page -->
<th1>
if {[info exists comment] && [string length $comment]>10} {
  html {
    <tr><td class="tktDspLabel">Description:</td></tr>
    <tr><td colspan="5" class="tktDspValue">
  }
  if {[info exists plaintext]} {
    set r [randhex]
    wiki "<verbatim-$r links>\n$comment\n</verbatim-$r>"
  } else {
    wiki $comment
  }
}
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} {
    html "<hr>\n"
  } else {
    html "<tr><td class='tktDspLabel'>User Comments:</td></tr>\n"
    html "<tr><td colspan='5' class='tktDspValue'>\n"
    set seenRow 1
  }
  html "[htmlize $xlogin]"
  if {$xlogin ne $xusername && [string length $xusername]>0} {
    html " (claiming to be [htmlize $xusername])"
  }
  html " added on $xdate:\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"} {
    wiki "<p>\n[string trimright $xcomment]\n</p>\n"
  } elseif {$xmimetype eq "text/html"} {
    wiki "<p><nowiki>\n[string trimright $xcomment]\n</nowiki>\n"
  } else {
    set r [randhex]
    wiki "<verbatim-$r links>[string trimright $xcomment]</verbatim-$r>\n"
  }
}
if {$seenRow} {html "</td></tr>\n"}
</th1>
<!-- End of copy -->

<!-- Original edit page follows -->
<tr><td colspan="2">
  Append Remark with format
  <th1>combobox mutype {Wiki HTML {Plain Text} {[links only]}} 1</th1>
  from
...


2015-07-30 11:07 GMT+01:00 Bjorn Madsen <
[email protected]>:

> Hi -
> When hitting "edit" on a ticket, to add comments the original ticket is
> not visible, which makes it hard to refer to the original content.
>
> Is there an easy way to make this visible (setting) or is this a feature
> request?
>
> Kind regards
>
> --
> Bjorn Madsen
> *Researcher Complex Systems Research*
> Ph.: (+44) 0 7792 030 720
> [email protected]
>
>
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to