From ef3afee2a3471eff6c5285a258caba54c9b74ef3 Mon Sep 17 00:00:00 2001 From: Marc Schumann Date: Wed, 11 Apr 2012 21:50:54 +0200 Subject: If you're not allowed to change status or resolution, their values are being displayed unlocalized. r/a=LpSolit https://bugzilla.mozilla.org/show_bug.cgi?id=740879 --- template/en/default/bug/field.html.tmpl | 39 ++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 15 deletions(-) (limited to 'template/en') diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index 681ea716d..58f1b0ccc 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -202,22 +202,31 @@ 'keyword_autocomplete'); [% END %] -[% ELSIF field.type == constants.FIELD_TYPE_TEXTAREA %] -
[% value FILTER html %]
-[% ELSIF field.type == constants.FIELD_TYPE_BUG_ID %] - [% IF value %] - [% value FILTER bug_link(value, use_alias => 1) FILTER none %] - [% END %] -[% ELSIF field.type == constants.FIELD_TYPE_BUG_URLS %] - [% '' IF value.size %] [% ELSE %] - [% value.join(', ') FILTER html %] + [% SWITCH field.type %] + [% CASE constants.FIELD_TYPE_TEXTAREA %] +
[% value FILTER html %]
+ [% CASE constants.FIELD_TYPE_BUG_ID %] + [% IF value %] + [% value FILTER bug_link(value, use_alias => 1) FILTER none %] + [% END %] + [% CASE [ constants.FIELD_TYPE_SINGLE_SELECT + constants.FIELD_TYPE_MULTI_SELECT ] %] + [% FOREACH val = value %] + [% display_value(field.name, val) FILTER html %] + [% ', ' UNLESS loop.last() %] + [% END %] + [% CASE constants.FIELD_TYPE_BUG_URLS %] + [% '' IF value.size %] + [% CASE %] + [% value.join(', ') FILTER html %] + [% END %] [% END %] [% Hook.process('end_field_column') %] [% '' IF NOT no_tds %] -- cgit v1.2.3-24-g4f1b From 84d097fb4c017e71714aad75e90da8154c087e85 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Thu, 12 Apr 2012 20:58:30 +0200 Subject: Bug 741078: Release notes for Bugzilla 4.2.1 r=dkl --- template/en/default/pages/release-notes.html.tmpl | 49 ++++++++++++++++++++++- 1 file changed, 47 insertions(+), 2 deletions(-) (limited to 'template/en') diff --git a/template/en/default/pages/release-notes.html.tmpl b/template/en/default/pages/release-notes.html.tmpl index 6402814e1..51e698d93 100644 --- a/template/en/default/pages/release-notes.html.tmpl +++ b/template/en/default/pages/release-notes.html.tmpl @@ -29,7 +29,7 @@