show-multiple.html.tmpl 3.27 KB
Newer Older
1
[%# 1.0@bugzilla.org %]
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
[%# The contents of this file are subject to the Mozilla Public
  # License Version 1.1 (the "License"); you may not use this file
  # except in compliance with the License. You may obtain a copy of
  # the License at http://www.mozilla.org/MPL/
  #
  # Software distributed under the License is distributed on an "AS
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  # implied. See the License for the specific language governing
  # rights and limitations under the License.
  #
  # The Original Code is the Bugzilla Bug Tracking System.
  #
  # The Initial Developer of the Original Code is Netscape Communications
  # Corporation. Portions created by Netscape are
  # Copyright (C) 1998 Netscape Communications Corporation. All
  # Rights Reserved.
  #
  # Contributor(s): Myk Melez <myk@mozilla.org>
  #%]

22
[% PROCESS global/variables.none.tmpl %]
23
[% filtered_summary = bugsummary FILTER html %]
24
[% header = BLOCK %]View All Attachments for
25 26 27 28 29 30
  [%+ "$terms.Bug $bug.bug_id" FILTER bug_link(bug.bug_id) FILTER none %][% END %]

[% title = BLOCK %]
  View All Attachments for [% terms.Bug %] [%+ bug.bug_id FILTER html %]
[% END %]

31
[% PROCESS global/header.html.tmpl
32
  title = title
33 34
  header = header
  subheader = filtered_summary
35 36 37 38 39 40 41 42 43 44 45 46 47
  style = "
    table.attachment_info th { text-align: right; vertical-align: top; }
    table.attachment_info td { text-align: left; vertical-align: top; }
  "
%]

<br>

[% FOREACH a = attachments %]

  <div align="center">
  <table class="attachment_info" cellspacing="0" cellpadding="4" border="1" width="75%">
    <tr>
48
      <td valign="top" bgcolor="#cccccc" colspan="6">
49
        <big><b>Attachment #[% a.id %]</b></big>
50 51 52 53
      </td>
    </tr>
    <tr>
      <td valign="top">
54
        [% a.description FILTER html FILTER obsolete(a.isobsolete) %]
55 56 57 58 59 60 61 62 63 64
      </td>

      <td valign="top">
        [% IF a.ispatch %]
          <i>patch</i>
        [% ELSE %]
          [% a.contenttype FILTER html %]
        [% END %]
      </td>

65
      <td valign="top">[% a.attached FILTER time %]</td>
66
      <td valign="top">[% a.datasize FILTER unitconvert %]</td>
67 68

      <td valign="top">
69 70
        [% IF a.flags.size == 0 %]
          <i>no flags</i>
71
        [% ELSE %]
72
          [% FOREACH flag = a.flags %]
73
            [% flag.setter.nick FILTER html %]:
74 75 76 77 78
            [%+ flag.type.name FILTER html %][% flag.status %]
            [% IF flag.status == "?" && flag.requestee %]
              ([% flag.requestee.nick FILTER html %])
            [% END %]
            [% ", " IF !loop.last %]
79 80 81 82 83
          [% END %]
        [% END %]
      </td>

      <td valign="top">
84
        <a href="attachment.cgi?id=[% a.id %]&amp;action=edit">Details</a>
85 86 87 88 89
      </td>
    </tr>
  </table>

  [% IF a.isviewable %]
90
    <iframe src="attachment.cgi?id=[% a.id %]" width="75%" height="350">
91
      <b>You cannot view the attachment on this page because your browser does not support IFRAMEs.
92
      <a href="attachment.cgi?id=[% a.id %]">View the attachment on a separate page</a>.</b>
93 94 95 96
    </iframe>
  [% ELSE %]
    <p><b>
      Attachment cannot be viewed because its MIME type is not text/*, image/*, or application/vnd.mozilla.*.
97
      <a href="attachment.cgi?id=[% a.id %]">Download the attachment instead</a>.
98 99 100 101 102 103 104 105 106
    </b></p>
  [% END %]
  </div>

  <br><br>

[% END %]

[% PROCESS global/footer.html.tmpl %]