summaryrefslogtreecommitdiffstats
path: root/template/default/attachment/list.atml
blob: 3086c8dc0fc1c5a7cbb9fd43cbd088c7d288de83 (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
<br>
<table cellspacing="0" cellpadding="4" border="1">
  <tr>
    <th bgcolor="#cccccc" align="left">Attachment</th>
    <th bgcolor="#cccccc" align="left">Type</th>
    <th bgcolor="#cccccc" align="left">Modified</th>
    <th bgcolor="#cccccc" align="left">Status</th>
    <th bgcolor="#cccccc" align="left">Actions</th>
  </tr>

  [% FOREACH attachment = attachments %]
    <tr>
      <td valign="top">
        [% IF attachment.isobsolete %]
          <strike><a href="attachment.cgi?id=[% attachment.attachid %]&action=view">[% attachment.description %]</a></strike>
        [% ELSE %]
          <a href="attachment.cgi?id=[% attachment.attachid %]&action=view">[% attachment.description %]</a> 
        [% END %]
      </td>

      <td valign="top">
        [% IF attachment.ispatch %]
          <i>patch</i>
        [% ELSE %]
          [% attachment.mimetype %]
        [% END %]
      </td>

      <td valign="top">[% attachment.date %]</td>

      <td valign="top">
        <nobr>
        [% IF attachment.statuses.size == 0 %]
          <i>none</i>
        [% ELSE %]
          [% FOREACH s = attachment.statuses %]
            [% s %]<br>
          [% END %]
        [% END %]
        </nobr>
      </td>

      <td valign="top">
        <a href="attachment.cgi?id=[% attachment.attachid %]&action=edit">Edit</a> 
      </td>
    </tr>
  [% END %]

  <tr>
    <td colspan="4">
      <a href="createattachment.cgi?id=[% bugid %]">Create a new attachment</a> (proposed patch, testcase, etc.)
    </td>
    <td colspan="1">
      <a href="attachment.cgi?bugid=[% bugid %]&action=viewall">View All</a>
    </td>
  </tr>
</table>
<br>