[%# 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): John Keiser #%] [%# Define strings that will serve as the title and header of this page %] [% title = BLOCK %]Attachment #[% attachid %] for Bug #[% bugid %][% END %] [% style = BLOCK %] .file_head { font-size: x-large; font-weight: bold; background-color: #d3d3d3; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; width: 100% } .file_collapse { display: none } .section_head { width: 100%; font-weight: bold; background-color: #d3d3d3; border: 1px solid black; text-align: left } table.file_table { width: 100%; empty-cells: show; border-spacing: 0px; border-collapse: collapse } tbody.file td { width: 50%; height: 1em; font-size: 0.9em; font-family: monospace } .changed { background-color: lightblue } .added { background-color: lightgreen } .removed { background-color: lightgreen } [% END %] [% onload = 'restore_all(); document.checkboxform.restore_indicator.checked = true' %] [% DEFAULT headers = 1 %] [% IF headers %] [% h1 = BLOCK %][% IF attachid %]Attachment #[% attachid %][% ELSE %]Diff Between Attachments #[% oldid %] and [% newid %][% END %] for Bug #[% bugid %][% END %] [% h2 = BLOCK %][% bugsummary FILTER html %][% END %] [% PROCESS global/header.html.tmpl title = title h1 = h1 h2 = h2 style = style onload = onload %] [% ELSE %] [% END %] [%# SCRIPT FUNCTIONS %] [%# If we have attachid, we are in prettyview, otherwise we're in interdiff %] [% IF attachid %] [%# HEADER %] [% USE url('attachment.cgi', id = attachid) %] View | Edit [% USE url('attachment.cgi', id = attachid, context = context, collapsed = collapsed, headers = headers, action = 'prettyview') %] | Raw Unified [% IF other_patches %] | Differences between
and this patch
[% END %]
[% ELSE %] [% USE url('attachment.cgi', newid = newid, oldid = oldid, action = 'interdiff') %] Raw Unified
[% END %] [%# Collapse / Expand %] Collapse All | Expand All [% IF do_context %] | Context: (Patch / File / [% IF context == "patch" || context == "file" %] [% context = 3 %] [% END %] [%# textbox for context %]
) [% END %] [%# Restore Stuff %]