summaryrefslogtreecommitdiff
path: root/skins/blitz/ticket.txt
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-09-04 09:05:24 +0200
committercashmere <cashmere@autistici.org>2026-09-04 09:05:24 +0200
commit4f49b16079b27d7ce633619e4cddfdf2bffbc952 (patch)
treec296c1e7f3c3e2f6859c6d3a1b1b208779b89679 /skins/blitz/ticket.txt
downloadrelic-master.tar.gz
initial commitHEADmaster
Diffstat (limited to 'skins/blitz/ticket.txt')
-rw-r--r--skins/blitz/ticket.txt115
1 files changed, 115 insertions, 0 deletions
diff --git a/skins/blitz/ticket.txt b/skins/blitz/ticket.txt
new file mode 100644
index 0000000..cc6bd58
--- /dev/null
+++ b/skins/blitz/ticket.txt
@@ -0,0 +1,115 @@
+<h4>$<title></h4>
+<table class="tktDsp">
+<tr><td class="tktDspLabel">Ticket&nbsp;Hash</td>
+<th1>
+if {[info exists tkt_uuid]} {
+ if {[hascap s]} {
+ html "<td class='tktDspValue' colspan='3'>$tkt_uuid "
+ html "($tkt_id)</td></tr>\n"
+ } else {
+ html "<td class='tktDspValue' colspan='3'>$tkt_uuid</td></tr>\n"
+ }
+} else {
+ if {[hascap s]} {
+ html "<td class='tktDspValue' colspan='3'>Deleted "
+ html "(0)</td></tr>\n"
+ } else {
+ html "<td class='tktDspValue' colspan='3'>Deleted</td></tr>\n"
+ }
+}
+</th1>
+<tr><td class="tktDspLabel">Status</td><td class="tktDspValue">
+$<status>
+</td>
+<td class="tktDspLabel">Type</td><td class="tktDspValue">
+$<type>
+</td></tr>
+<tr><td class="tktDspLabel">Severity</td><td class="tktDspValue">
+$<severity>
+</td>
+<td class="tktDspLabel">Priority</td><td class="tktDspValue">
+$<priority>
+</td></tr>
+<tr><td class="tktDspLabel">Subsystem</td><td class="tktDspValue">
+$<subsystem>
+</td>
+<td class="tktDspLabel">Resolution</td><td class="tktDspValue">
+$<resolution>
+</td></tr>
+<tr><td class="tktDspLabel">Last&nbsp;Modified</td><td class="tktDspValue">
+<th1>
+if {[info exists tkt_datetime]} {
+ html $tkt_datetime
+}
+</th1>
+</td>
+<th1>enable_output [hascap e]</th1>
+ <td class="tktDspLabel">Contact</td><td class="tktDspValue">
+ $<private_contact>
+ </td>
+<th1>enable_output 1</th1>
+</tr>
+<tr><td class="tktDspLabel">Version&nbsp;Found&nbsp;In</td>
+<td colspan="3" valign="top" class="tktDspValue">
+$<foundin>
+</td></tr>
+
+<th1>
+if {[info exists comment]} {
+ if {[string length $comment]>10} {
+ html {
+ <tr>
+ <td class="tktDescLabel">Description</td>
+ <td class="tktDescValue" colspan="3">
+ }
+ if {[info exists plaintext]} {
+ set r [randhex]
+ wiki "<verbatim-$r links>\n$comment\n</verbatim-$r>"
+ } else {
+ wiki $comment
+ }
+ html "</td></tr>\n"
+ }
+}
+</th1>
+</table>
+
+<div class="tktComments">
+<th1>
+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 "<h5>User Comments</h5>\n"
+ set seenRow 1
+ }
+ html "<div class='tktComment'>\n"
+ html "<div class='tktCommentHeader'>\n"
+ html "<div class='pull-right'>$xdate</div>\n"
+ html "<span class='tktCommentLogin'>[htmlize $xlogin]</span>"
+ if {$xlogin ne $xusername && [string length $xusername]>0} {
+ html " (claiming to be <span class='tktCommentLogin'>[htmlize $xusername]</span>)"
+ }
+ html " commented</div>\n"
+ html "<div class='tktCommentBody'>\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></p>\n"
+ } else {
+ set r [randhex]
+ wiki "<verbatim-$r links>[string trimright $xcomment]</verbatim-$r>\n"
+ }
+ html "</div><!-- end comment body -->\n"
+ html "</div><!-- end comment -->\n"
+}
+</th1>
+</div>