show-multiple.html.tmpl 2.98 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<!-- 1.0@bugzilla.org -->
[%# 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>
  #%]

[% filtered_summary = bugsummary FILTER html %]
23
[% PROCESS global/header.html.tmpl 
24 25 26 27
  title = "View All Attachments for Bug #$bugid"
  h1 = "View All Attachments for <a href=\"show_bug.cgi?id=$bugid\">Bug #$bugid</a>"
  h2 = filtered_summary
  style = "
28 29
    table.attachment_info th { text-align: right; vertical-align: top; }
    table.attachment_info td { text-align: left; vertical-align: top; }
30 31 32 33 34 35 36 37
  "
%]

<br>

[% FOREACH a = attachments %]

  <div align="center">
38
  <table class="attachment_info" cellspacing="0" cellpadding="4" border="1" width="75%">
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
    <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 FILTER html %]</strike>
        [% ELSE %]
          [% a.description FILTER html %]
        [% END %]
      </td>

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

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

      <td valign="top">
        [% IF a.statuses.size == 0 %]
          <i>none</i>
        [% ELSE %]
          [% FOREACH s = a.statuses %]
            [% s FILTER html FILTER replace('\s', '&nbsp;') %]<br>
          [% END %]
        [% END %]
      </td>

      <td valign="top">
74
        <a href="attachment.cgi?id=[% a.attachid %]&amp;action=edit">Edit</a> 
75 76 77 78 79
      </td>
    </tr>
  </table>

  [% IF a.isviewable %]
80
    <iframe src="attachment.cgi?id=[% a.attachid %]&amp;action=view" width="75%" height="350">
81
      <b>You cannot view the attachment on this page because your browser does not support IFRAMEs.
82
      <a href="attachment.cgi?id=[% a.attachid %]&amp;action=view">View the attachment on a separate page</a>.</b>
83 84 85 86
    </iframe>
  [% ELSE %]
    <p><b>
      Attachment cannot be viewed because its MIME type is not text/*, image/*, or application/vnd.mozilla.*.
87
      <a href="attachment.cgi?id=[% a.attachid %]&amp;action=view">Download the attachment instead</a>.
88 89 90 91 92 93 94 95
    </b></p>
  [% END %]
  </div>

  <br><br>

[% END %]

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