summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorMarc Schumann <wurblzap@gmail.com>2012-04-11 21:51:28 +0200
committerMarc Schumann <wurblzap@gmail.com>2012-04-11 21:51:28 +0200
commitee64eb05edc61d40dac21dc3ff3a9411e1f26738 (patch)
tree222df07ddea2b75ffe042501bb8bf9bc7a40b19c /template/en/default/bug
parentd98e51117b0203f0a344e385d54782f10576629c (diff)
downloadbugzilla-ee64eb05edc61d40dac21dc3ff3a9411e1f26738.tar.gz
bugzilla-ee64eb05edc61d40dac21dc3ff3a9411e1f26738.tar.xz
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
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/field.html.tmpl39
1 files changed, 24 insertions, 15 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl
index 78e919a2d..0cc75c288 100644
--- a/template/en/default/bug/field.html.tmpl
+++ b/template/en/default/bug/field.html.tmpl
@@ -186,22 +186,31 @@
'keyword_autocomplete');
</script>
[% END %]
-[% ELSIF field.type == constants.FIELD_TYPE_TEXTAREA %]
- <div class="uneditable_textarea">[% value FILTER html %]</div>
-[% 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 %]
- [% '<ul class="bug_urls">' IF value.size %]
- [% FOREACH bug_url = value %]
- <li>
- [% PROCESS bug_url_link bug_url = bug_url %]
- </li>
- [% END %]
- [% '</ul>' IF value.size %]
[% ELSE %]
- [% value.join(', ') FILTER html %]
+ [% SWITCH field.type %]
+ [% CASE constants.FIELD_TYPE_TEXTAREA %]
+ <div class="uneditable_textarea">[% value FILTER html %]</div>
+ [% 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 %]
+ [% '<ul class="bug_urls">' IF value.size %]
+ [% FOREACH bug_url = value %]
+ <li>
+ [% PROCESS bug_url_link bug_url = bug_url %]
+ </li>
+ [% END %]
+ [% '</ul>' IF value.size %]
+ [% CASE %]
+ [% value.join(', ') FILTER html %]
+ [% END %]
[% END %]
[% Hook.process('end_field_column') %]
[% '</td>' IF NOT no_tds %]