|
1
|
<h4>$<title></h4> |
|
2
|
<table class="tktDsp"> |
|
3
|
<tr><td class="tktDspLabel">Ticket Hash</td> |
|
4
|
<th1> |
|
5
|
if {[info exists tkt_uuid]} { |
|
6
|
if {[hascap s]} { |
|
7
|
html "<td class='tktDspValue' colspan='3'>$tkt_uuid " |
|
8
|
html "($tkt_id)</td></tr>\n" |
|
9
|
} else { |
|
10
|
html "<td class='tktDspValue' colspan='3'>$tkt_uuid</td></tr>\n" |
|
11
|
} |
|
12
|
} else { |
|
13
|
if {[hascap s]} { |
|
14
|
html "<td class='tktDspValue' colspan='3'>Deleted " |
|
15
|
html "(0)</td></tr>\n" |
|
16
|
} else { |
|
17
|
html "<td class='tktDspValue' colspan='3'>Deleted</td></tr>\n" |
|
18
|
} |
|
19
|
} |
|
20
|
</th1> |
|
21
|
<tr><td class="tktDspLabel">Status</td><td class="tktDspValue"> |
|
22
|
$<status> |
|
23
|
</td> |
|
24
|
<td class="tktDspLabel">Type</td><td class="tktDspValue"> |
|
25
|
$<type> |
|
26
|
</td></tr> |
|
27
|
<tr><td class="tktDspLabel">Severity</td><td class="tktDspValue"> |
|
28
|
$<severity> |
|
29
|
</td> |
|
30
|
<td class="tktDspLabel">Priority</td><td class="tktDspValue"> |
|
31
|
$<priority> |
|
32
|
</td></tr> |
|
33
|
<tr><td class="tktDspLabel">Subsystem</td><td class="tktDspValue"> |
|
34
|
$<subsystem> |
|
35
|
</td> |
|
36
|
<td class="tktDspLabel">Resolution</td><td class="tktDspValue"> |
|
37
|
$<resolution> |
|
38
|
</td></tr> |
|
39
|
<tr><td class="tktDspLabel">Last Modified</td><td class="tktDspValue"> |
|
40
|
<th1> |
|
41
|
if {[info exists tkt_datetime]} { |
|
42
|
html $tkt_datetime |
|
43
|
} |
|
44
|
</th1> |
|
45
|
</td> |
|
46
|
<th1>enable_output [hascap e]</th1> |
|
47
|
<td class="tktDspLabel">Contact</td><td class="tktDspValue"> |
|
48
|
$<private_contact> |
|
49
|
</td> |
|
50
|
<th1>enable_output 1</th1> |
|
51
|
</tr> |
|
52
|
<tr><td class="tktDspLabel">Version Found In</td> |
|
53
|
<td colspan="3" valign="top" class="tktDspValue"> |
|
54
|
$<foundin> |
|
55
|
</td></tr> |
|
56
|
|
|
57
|
<th1> |
|
58
|
if {[info exists comment]} { |
|
59
|
if {[string length $comment]>10} { |
|
60
|
html { |
|
61
|
<tr> |
|
62
|
<td class="tktDescLabel">Description</td> |
|
63
|
<td class="tktDescValue" colspan="3"> |
|
64
|
} |
|
65
|
if {[info exists plaintext]} { |
|
66
|
set r [randhex] |
|
67
|
wiki "<verbatim-$r links>\n$comment\n</verbatim-$r>" |
|
68
|
} else { |
|
69
|
wiki $comment |
|
70
|
} |
|
71
|
html "</td></tr>\n" |
|
72
|
} |
|
73
|
} |
|
74
|
</th1> |
|
75
|
</table> |
|
76
|
|
|
77
|
<div class="tktComments"> |
|
78
|
<th1> |
|
79
|
set seenRow 0 |
|
80
|
set alwaysPlaintext [info exists plaintext] |
|
81
|
query {SELECT datetime(tkt_mtime) AS xdate, login AS xlogin, |
|
82
|
mimetype as xmimetype, icomment AS xcomment, |
|
83
|
username AS xusername |
|
84
|
FROM ticketchng |
|
85
|
WHERE tkt_id=$tkt_id AND length(icomment)>0} { |
|
86
|
if {$seenRow eq "0"} { |
|
87
|
html "<h5>User Comments</h5>\n" |
|
88
|
set seenRow 1 |
|
89
|
} |
|
90
|
html "<div class='tktComment'>\n" |
|
91
|
html "<div class='tktCommentHeader'>\n" |
|
92
|
html "<div class='pull-right'>$xdate</div>\n" |
|
93
|
html "<span class='tktCommentLogin'>[htmlize $xlogin]</span>" |
|
94
|
if {$xlogin ne $xusername && [string length $xusername]>0} { |
|
95
|
html " (claiming to be <span class='tktCommentLogin'>[htmlize $xusername]</span>)" |
|
96
|
} |
|
97
|
html " commented</div>\n" |
|
98
|
html "<div class='tktCommentBody'>\n" |
|
99
|
if {$alwaysPlaintext || $xmimetype eq "text/plain"} { |
|
100
|
set r [randhex] |
|
101
|
if {$xmimetype ne "text/plain"} {html "([htmlize $xmimetype])\n"} |
|
102
|
wiki "<verbatim-$r>[string trimright $xcomment]</verbatim-$r>\n" |
|
103
|
} elseif {$xmimetype eq "text/x-fossil-wiki"} { |
|
104
|
wiki "<p>\n[string trimright $xcomment]\n</p>\n" |
|
105
|
} elseif {$xmimetype eq "text/html"} { |
|
106
|
wiki "<p><nowiki>\n[string trimright $xcomment]\n</nowiki></p>\n" |
|
107
|
} else { |
|
108
|
set r [randhex] |
|
109
|
wiki "<verbatim-$r links>[string trimright $xcomment]</verbatim-$r>\n" |
|
110
|
} |
|
111
|
html "</div><!-- end comment body -->\n" |
|
112
|
html "</div><!-- end comment -->\n" |
|
113
|
} |
|
114
|
</th1> |
|
115
|
</div> |
|
116
|
|