From b2966165174d850b13be0e25eba6e9053142ed00 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Thu, 20 Oct 2005 03:16:12 +0000 Subject: Bug 149504 Permit a reference to a URL to be treated as an attachment Patch by Joel Peshkin r=lpsolit, a=justdave --- template/en/default/attachment/edit.html.tmpl | 30 +++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'template/en/default/attachment/edit.html.tmpl') diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl index e46d5e552..7addd3278 100644 --- a/template/en/default/attachment/edit.html.tmpl +++ b/template/en/default/attachment/edit.html.tmpl @@ -209,16 +209,21 @@ Description:

- Filename:
-
- Size: [% datasize FILTER unitconvert %]
+ [% IF isurl %] +
+
+ [% ELSE %] + Filename:
+
+ Size: [% datasize FILTER unitconvert %]
- MIME Type:
-
+ MIME Type:
+
+ [% END %]
@@ -237,7 +242,8 @@

- Actions: View + Actions: + View [% IF ispatch && patchviewerinstalled %] | Diff [% END %] @@ -268,6 +274,18 @@ //--> + [% ELSIF isurl %] + + + [% IF datasize < 120 %] + [% thedata FILTER html %] + [% ELSE %] + [% thedata FILTER truncate(80) FILTER html %] +  ... + [% thedata.match(".*(.{20})$").0 FILTER html %] + [% END %] + + [% ELSE %]

-- cgit v1.2.3-24-g4f1b