From 98079c9180649bbb11191f708ec755265c188924 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 21 Jan 2007 22:11:13 +0000 Subject: Bug 365247: New UI for the attachment table (ported from b.m.o) - Patch by Frédéric Buclin (UI proposed by Mike Connor ) r=bkor a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/attachment/list.html.tmpl | 100 +++++++++++++------------- 1 file changed, 48 insertions(+), 52 deletions(-) (limited to 'template/en/default/attachment/list.html.tmpl') diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index 154cb98b1..275e92df2 100644 --- a/template/en/default/attachment/list.html.tmpl +++ b/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.) +

-- cgit v1.2.3-24-g4f1b