blob: 9a22b716ac55aa7d65f937d82552d184066ede92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
[% INCLUDE global/header
title = "View All Attachments for Bug #$bugid"
h1 = "View All Attachments for <a href=\"show_bug.cgi?id=$bugid\">Bug #$bugid</a>"
h2 = bugsummary
style = "
th { text-align: right; vertical-align: top; }
td { text-align: left; vertical-align: top; }
td#info { text-align: right; vertical-align: top; }
td#actions { text-align: right; vertical-align: bottom; }
"
%]
<br>
[% FOREACH a = attachments %]
<div align="center">
<table cellspacing="0" cellpadding="4" border="1" width="75%">
<tr>
<td valign="top" bgcolor="#cccccc" colspan="5">
<big><b>Attachment #[% a.attachid %]</b></big>
</td>
</tr>
<tr>
<td valign="top">
[% IF a.isobsolete %]
<strike>[% a.description %]</strike>
[% ELSE %]
[% a.description %]
[% END %]
</td>
<td valign="top">
[% IF a.ispatch %]
<i>patch</i>
[% ELSE %]
[% a.mimetype %]
[% END %]
</td>
<td valign="top">[% a.date %]</td>
<td valign="top">
<nobr>
[% IF a.statuses.size == 0 %]
<i>none</i>
[% ELSE %]
[% FOREACH s = a.statuses %]
[% s %]<br>
[% END %]
[% END %]
</nobr>
</td>
<td valign="top">
<a href="attachment.cgi?id=[% a.attachid %]&action=edit">Edit</a>
</td>
</tr>
</table>
[% IF a.isviewable %]
<iframe src="attachment.cgi?id=[% a.attachid %]&action=view" width="75%" height="350">
<b>You cannot view the attachment on this page because your browser does not support IFRAMEs.
<a href="attachment.cgi?id=[% a.attachid %]&action=view">View the attachment on a separate page</a>.</b>
</iframe>
[% ELSE %]
<p><b>
Attachment cannot be viewed because its MIME type is not text/*, image/*, or application/vnd.mozilla.*.
<a href="attachment.cgi?id=[% a.attachid %]&action=view">Download the attachment instead</a>.
</b></p>
[% END %]
</div>
<br><br>
[% END %]
[% INCLUDE global/footer %]
|