r179: Only show the attachments block if you have permission
[bugdar.git] / templates / default / SHOWREPORT.tpl
1 <div><strong>Bug ID:</strong> $bug[bugid]</div>
2 <div><strong>Reported by:</strong> $bug[userinfo]</div>
3 <div><strong>Product:</strong> $bug[product] <if condition="$bug['componentid']">/ <strong>Component:</strong> $bug[component]</if> / <strong>Version:</strong> $bug[version]</div>
4 <div><strong>Title / summary:</strong> $bug[summary]</div>
5 <div><strong>Status:</strong> $bug[status] / <strong>Resolution:</strong> $bug[resolution]</div>
6 <div><strong>Severity:</strong> $bug[severity]</div>
7 <div><strong>Priority:</strong> $bug[priority]</div>
8 <if condition="$bug['assigninfo']"><div><strong>Assigned to:</strong> $bug[assigninfo]</div></if>
9
10 <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></div>
11
12 <br />
13
14 <if condition="$show['getattachments'] OR $show['putattachments']">
15 <table border="1" cellspacing="2" cellpadding="4">
16 <thead style="background-color: #EEEEEE">
17 <tr>
18 <td>Attachments</td>
19 </tr>
20 </thead>
21 <tbody>
22 $attachments
23 <if condition="$show['putattachments']">
24 <tr>
25 <td style="background-color: #999999">[<a href="attachment.php?do=add&amp;bugid=$bug[bugid]">Add New Attachment</a>]</td>
26 </tr>
27 </if>
28 </tbody>
29 </table>
30
31 <br />
32 </if>
33
34 $comments
35
36 <if condition="$show['newreply']"><div>[<a href="newcomment.php?bugid=$bug[bugid]">New Comment</a>]</div></if>