diff options
author | David Lawrence <dkl@mozilla.com> | 2014-10-20 21:12:05 +0000 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-10-20 21:12:05 +0000 |
commit | 2ebb8b6a298478271c9adcfa22c9c76f9e453e2d (patch) | |
tree | 66f73abf63422c454ef3ce0879f493e99abc7f37 | |
parent | cd3b8b4813c1a2a1e1b5467011436306bc678668 (diff) | |
download | bugs-2ebb8b6a298478271c9adcfa22c9c76f9e453e2d.tar bugs-2ebb8b6a298478271c9adcfa22c9c76f9e453e2d.tar.gz bugs-2ebb8b6a298478271c9adcfa22c9c76f9e453e2d.tar.bz2 bugs-2ebb8b6a298478271c9adcfa22c9c76f9e453e2d.tar.xz bugs-2ebb8b6a298478271c9adcfa22c9c76f9e453e2d.zip |
Backout Bug 1015226: When using field-label.html.tmpl there is not a way to underline the access key letter in the field description
-rw-r--r-- | template/en/default/bug/field-label.html.tmpl | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/template/en/default/bug/field-label.html.tmpl b/template/en/default/bug/field-label.html.tmpl index 74f2a4779..95ac28acb 100644 --- a/template/en/default/bug/field-label.html.tmpl +++ b/template/en/default/bug/field-label.html.tmpl @@ -16,21 +16,12 @@ #%] [% DEFAULT tag_name = "th" %] -[% DEFAULT field_name = field_descs.${field.name} FILTER html %] - <[% tag_name FILTER html %] class="field_label [% ' bz_hidden_field' IF hidden %] [%- ' required' IF field.is_mandatory && NOT bug.id %]" id="field_label_[% field.name FILTER html %]" [% IF rowspan %] rowspan="[% rowspan FILTER html %]"[% END %]> [% IF editable %] - [%# Underline the accesskey if defined and found in the field name %] - [% IF accesskey %] - [% matches = field_name.match("(?i)($accesskey)") %] - [% IF matches.0 %] - [% field_name = field_name.replace(matches.0, "<u>${matches.0}</u>") %] - [% END %] - [% END %] <label for="[% field.name FILTER html %]"[% IF accesskey %] accesskey="[% accesskey FILTER html %]"[% END %]> [% END %] @@ -44,7 +35,7 @@ [% ELSE %] href="page.cgi?id=fields.html#[% field.name FILTER uri %]" [% END %] - >[%- field_name FILTER none %]:</a> + >[%- field_descs.${field.name} FILTER html %]:</a> [% '</label>' IF editable %] </[% tag_name FILTER html %]> |