From 82b85c9a3f83b81876612aac57407c698bcb2e0d Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Sun, 21 Jan 2007 14:11:14 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20365247:=20New=20UI=20for=20the=20attachme?= =?UTF-8?q?nt=20table=20(ported=20from=20b.m.o)=20-=20Patch=20by=20Fr?= =?UTF-8?q?=EF=BF=BD=EF=BF=BDd=EF=BF=BD=EF=BF=BDric=20Buclin=20=20(UI=20proposed=20by=20Mike=20Connor=20)=20r=3Dbkor=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webtools/bugzilla/skins/standard/global.css | 29 +++++ .../en/default/attachment/list.html.tmpl | 100 +++++++++--------- 2 files changed, 77 insertions(+), 52 deletions(-) diff --git a/webtools/bugzilla/skins/standard/global.css b/webtools/bugzilla/skins/standard/global.css index 7504cb0fbe4..bd558d5c517 100644 --- a/webtools/bugzilla/skins/standard/global.css +++ b/webtools/bugzilla/skins/standard/global.css @@ -281,6 +281,35 @@ dl dl > dt { border-top: none; } +/* Style of the attachment table */ +#attachment_table { + border-collapse: collapse; + width: 40em; + border: 1px solid #333333; +} + +#attachment_table th, .bz_attach_footer { + background-color: #E0E0E0; + color: black; +} + +#attachment_table td { + border: 1px solid #333333; +} + +.bz_attach_extra_info { + font-size: smaller; +} + +.bz_attach_flags, .bz_attach_footer { + white-space: nowrap; +} + +.bz_attach_view_hide { + float: right; + padding-left: 1em; +} + .box { border: 1px solid black; color: black; diff --git a/webtools/bugzilla/template/en/default/attachment/list.html.tmpl b/webtools/bugzilla/template/en/default/attachment/list.html.tmpl index 154cb98b183..275e92df27e 100644 --- a/webtools/bugzilla/template/en/default/attachment/list.html.tmpl +++ b/webtools/bugzilla/template/en/default/attachment/list.html.tmpl @@ -51,18 +51,13 @@
- +
- - - - - - [% IF show_attachment_flags %] - - [% END %] - + + [% count = 0 %] [% has_obsolete_attachments = 0 %] @@ -72,40 +67,44 @@ [% SET has_obsolete_attachments = 1 IF attachment.isobsolete %] - - - - - - [% IF show_attachment_flags %] - - + - [% IF attachments.size %] - - [% ELSE %] - - [% END %]
AttachmentTypeCreatorCreatedSizeFlagsActions + Attachments +
- [% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %] - - [% IF attachment.ispatch %] - patch - [% ELSIF attachment.isurl %] - url - [% ELSE %] - [% attachment.contenttype FILTER html %] - [% END %] - - - [% attachment.attacher.name || attachment.attacher.login FILTER html %] - - - [% attachment.attached FILTER time %] - [% IF attachment.datasize %] - [% attachment.datasize FILTER unitconvert %] - [% ELSE %] - deleted + [% END %] + [% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %] + [% "" IF attachment.datasize %] + + + [% IF attachment.datasize %] + ([% attachment.datasize FILTER unitconvert %], + [% IF attachment.ispatch %] + patch) + [% ELSIF attachment.isurl %] + url) + [% ELSE %] + [%+ attachment.contenttype FILTER html %]) + [% END %] + [% ELSE %] + (deleted) + [% END %] + +
+ + [%- attachment.attached FILTER time %], + + + [% attachment.attacher.name || attachment.attacher.login FILTER html %] + +
+ [% IF attachment.flags.size == 0 %] - none + no flag [% ELSE %] [% FOREACH flag = attachment.flags %] [% flag.setter.nick FILTER html %]: @@ -129,22 +128,19 @@ [% END %] [% END %] -
- Create a New Attachment (proposed patch, testcase, etc.) +