r281: Added voting system.
[bugdar.git] / templates / SHOWREPORT.tpl
1 <if condition="$bug['hidden']"><div><strong style="color: red">This bug is hidden!</strong></div></if>
2
3 <div><strong>Bug ID:</strong> $bug[bugid]</div>
4 <div><strong>Reported by:</strong> $bug[userinfo]</div>
5 <div><strong>Product:</strong> $bug[product] <if condition="$bug['componentid']">/ <strong>Component:</strong> $bug[component]</if> / <strong>Version:</strong> $bug[version]</div>
6 <div><strong>Title / summary:</strong> $bug[summary]</div>
7 <div><strong>Status:</strong> $bug[status] / <strong>Resolution:</strong> $bug[resolution]</div>
8 <div><strong>Severity:</strong> $bug[severity]</div>
9 <div><strong>Priority:</strong> $bug[priority]</div>
10 <if condition="$bug['assigninfo']"><div><strong>Assigned to:</strong> $bug[assigninfo]</div></if>
11 <if condition="$bug['duplicateof']"><div><strong>Duplicate of:</strong> <a href="showreport.php?bugid=$bug[duplicateof]">$duplicateof[summary]</a></div></if>
12 <if condition="$dupelist"><div><strong>Bugs marked as duplicates of this:</strong> $dupelist</div></if>
13 <if condition="$dependencies"><div><strong>Dependencies:</strong> $dependencies</div></if>
14
15 $customfields
16
17 <div>[<a href="showhistory.php?bugid=$bug[bugid]">Show Bug History</a>]<if condition="$show['editreport']"> [<a href="editreport.php?bugid=$bug[bugid]">Edit Bug Report</a>]</if><if condition="$bugsys->userinfo['userid']"> [<a href="favourite.php?do=handle&amp;bugid=$bug[bugid]">$favouritetext</a>]</div>
18
19 <br />
20
21 <if condition="$show['getattachments'] OR $show['putattachments']">
22 <table border="1" cellspacing="2" cellpadding="4">
23 <thead style="background-color: #EEEEEE">
24 <tr>
25 <td>Attachments</td>
26 </tr>
27 </thead>
28 <tbody>
29 $attachments
30 <if condition="$show['putattachments']">
31 <tr>
32 <td style="background-color: #999999">[<a href="attachment.php?do=add&amp;bugid=$bug[bugid]">Add New Attachment</a>]</td>
33 </tr>
34 </if>
35 </tbody>
36 </table>
37
38 <br />
39 </if>
40
41 <table border="1" cellspacing="2" cellpadding="4">
42 <thead style="background-color: #EEEEEE">
43 <tr>
44 <td>Votes for this Bug</td>
45 </tr>
46 </thead>
47 <tbody>
48 <tr>
49 <td>
50 <strong>Votes for this Bug:</strong> $vote[votefor] ($vote[forpercent]%)<br />
51 <strong>Votes against this bug:</strong> $vote[voteagainst] ($vote[againstpercent]%)<br />
52 <strong>Total Votes:</strong> $vote[total]
53 </td>
54 </tr>
55
56 <if condition="$show['vote']">
57 <tr>
58 <td>
59 <form name="vote" action="vote.php" method="post">
60 <input type="hidden" name="do" value="vote" />
61 <input type="hidden" name="bugid" value="$bug[bugid]" />
62
63 <input type="radio" name="vote" value="1" /> Vote For (+1)<br />
64 <input type="radio" name="vote" value="-1" /> Vote Against (-1)<br />
65 <input type="submit" name="submit" value="Vote" />
66
67 </form>
68 </td>
69 </tr>
70 </if>
71 </tbody>
72 </table>
73
74 <br />
75
76 $comments
77
78 <if condition="$show['newreply']"><div>[<a href="newcomment.php?bugid=$bug[bugid]">New Comment</a>]</div></if>