From: kiko%async.com.br <> Date: Fri, 10 Sep 2004 05:25:07 +0000 (+0000) Subject: Branch fix for bug 232659: Fix inconsistent attachment links (and clean X-Git-Tag: bugzilla-2.18rc3~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cba2362432a55390b9eeee8020312354343bf40e;p=thirdparty%2Fbugzilla.git Branch fix for bug 232659: Fix inconsistent attachment links (and clean up diff viewer UI while we're at it). Includes minor change to list that makes the URLs actually as consistent as on trunk. r=myk, a218=myk. --- diff --git a/template/en/default/attachment/diff-file.html.tmpl b/template/en/default/attachment/diff-file.html.tmpl index ffd525db54..75078b6792 100644 --- a/template/en/default/attachment/diff-file.html.tmpl +++ b/template/en/default/attachment/diff-file.html.tmpl @@ -71,7 +71,7 @@ incremental_restore() [% END %] [% END %] - (Link Here) + (Link Here) [% FOREACH group = section.groups %] [% IF group.context %] diff --git a/template/en/default/attachment/diff-header.html.tmpl b/template/en/default/attachment/diff-header.html.tmpl index 3d96d0f702..e3ca1ac416 100644 --- a/template/en/default/attachment/diff-header.html.tmpl +++ b/template/en/default/attachment/diff-header.html.tmpl @@ -25,60 +25,77 @@ [% title = BLOCK %] [% IF attachid %] -Attachment #[% attachid %] for [% terms.Bug %] #[% bugid %] +Attachment #[% attachid %] for [% terms.bug %] #[% bugid %] [% ELSE %] -Interdiff of #[% oldid %] and #[% newid %] for #[% terms.Bug %] #[% bugid %] +Interdiff of #[% oldid %] and #[% newid %] for #[% terms.bug %] #[% bugid %] [% END %] [% END %] [% style = BLOCK %] .file_head { - font-size: x-large; font-weight: bold; - background-color: #d3d3d3; + font-size: 1em; + background-color: #c3c3c3; border: 1px solid black; width: 100%; } + +.file_head a { + text-decoration: none; + font-family: monospace; + font-size: 1.1em; +} + .file_collapse { display: none; } + .section_head { width: 100%; - font-weight: bold; - background-color: #d3d3d3; + background-color: #f0f0f0; border: 1px solid black; text-align: left; } + table.file_table { table-layout: fixed; width: 100%; empty-cells: show; border-spacing: 0px; border-collapse: collapse; + /* draw border below last open context section in listing */ + border-bottom: 1px solid black; } + tbody.file td { border-left: 1px dashed black; border-right: 1px dashed black; width: 50%; } + tbody.file pre { display: inline; white-space: -moz-pre-wrap; font-size: 0.9em; } + tbody.file pre:empty { display: block; height: 1em; } + .changed { background-color: lightblue; } + .added { background-color: lightgreen; } + .removed { background-color: #FFCC99; } + .warning { color: red } @@ -186,22 +203,21 @@ tbody.file pre:empty { [% onload = 'restore_all(); document.checkboxform.restore_indicator.checked = true' %] +[% BLOCK viewurl %]attachment.cgi?id=[% id %][% END %] +[% BLOCK editurl %][% PROCESS viewurl %]&action=edit[% END %] +[% BLOCK diffurl %][% PROCESS viewurl %]&action=diff[% END %] + [% IF headers %] [% h1 = BLOCK %] [% IF attachid %] - [% description FILTER html %] (#[% attachid %]) + Attachment #[% attachid %]: [% description FILTER html %] [% ELSE %] - [% USE url %] - [% old_url = url('attachment.cgi', action = 'diff', id = oldid) %] - [% new_url = url('attachment.cgi', action = 'diff', id = newid) %] Diff Between - [% old_desc FILTER html %] - (#[% oldid %]) + #[% oldid %]: [% old_desc FILTER html %] and - [% new_desc FILTER html %] - (#[% newid %]) + #[% newid %]: [% new_desc FILTER html %] [% END %] - for [% terms.Bug %] #[% bugid %] + for [% terms.bug %] #[% bugid %] [% END %] [% h2 = BLOCK %] [% bugsummary FILTER html %] @@ -226,18 +242,14 @@ tbody.file pre:empty { [% IF attachid %] [%# HEADER %] [% IF headers %] - [% USE url('attachment.cgi', id = attachid) %] - View - | Edit - [% USE url('attachment.cgi', id = attachid, context = context, - collapsed = collapsed, headers = headers, - action = 'diff') %] - | Raw Unified + View + | Edit + | Raw Unified [% END %] [% IF other_patches %] [% IF headers %] |[%END%] Differences between -
+
) +
) [% END %] [% IF warning %] @@ -307,10 +315,12 @@ tbody.file pre:empty { [%+ terms.Bugzilla %] when comparing patches made against different revisions. [% END %] +[% ELSE %] +

[% END %] [%# Restore Stuff %] -
+ diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl index a05945df08..a4888f80d5 100644 --- a/template/en/default/attachment/edit.html.tmpl +++ b/template/en/default/attachment/edit.html.tmpl @@ -247,9 +247,9 @@ [% IF isviewable %] -