From 17de5bd104ba1e924b165ac2d3bf47703416eef6 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Wed, 11 Apr 2012 20:01:13 +0000 Subject: [PATCH] If you're not allowed to change status or resolution, their values are being displayed unlocalized. r/a=LpSolit git-svn-id: svn://10.0.0.236/trunk@263670 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- .../template/en/default/bug/field.html.tmpl | 39 ++++++++++++------- 2 files changed, 25 insertions(+), 16 deletions(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 3b2846b3a54..6577d757ef1 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8180 \ No newline at end of file +8181 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/template/en/default/bug/field.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/bug/field.html.tmpl index 78e919a2d1a..0cc75c28884 100644 --- a/mozilla/webtools/bugzilla/template/en/default/bug/field.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/bug/field.html.tmpl @@ -186,22 +186,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 %]