From 98446d4f4473c2c06515ea606cd6643b13092e0c Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Tue, 7 Jan 2014 20:26:08 +0100 Subject: Bug 952796: Remove HTML attributes which are obsolete in HTML5 r/a=justdave --- template/en/default/account/create.html.tmpl | 2 +- .../en/default/account/email/confirm-new.html.tmpl | 2 +- template/en/default/account/prefs/email.html.tmpl | 4 +- template/en/default/account/prefs/prefs.html.tmpl | 12 ++--- .../default/admin/users/confirm-delete.html.tmpl | 6 +-- template/en/default/admin/users/create.html.tmpl | 4 +- template/en/default/admin/users/edit.html.tmpl | 16 +++--- .../default/admin/users/listselectvars.html.tmpl | 2 +- template/en/default/admin/users/search.html.tmpl | 9 ++-- template/en/default/admin/users/userdata.html.tmpl | 15 +++--- template/en/default/attachment/diff-file.html.tmpl | 61 +++++++++++----------- template/en/default/bug/summarize-time.html.tmpl | 2 +- template/en/default/email/bugmail.html.tmpl | 2 +- template/en/default/list/edit-multiple.html.tmpl | 2 +- 14 files changed, 67 insertions(+), 72 deletions(-) (limited to 'template') diff --git a/template/en/default/account/create.html.tmpl b/template/en/default/account/create.html.tmpl index 21b19b0ee..9ac79ba45 100644 --- a/template/en/default/account/create.html.tmpl +++ b/template/en/default/account/create.html.tmpl @@ -53,7 +53,7 @@ existing ones, as you may be contacted for more information if needed. This also lets other users clearly identify who is the author of comments or changes made into [% terms.bugs %]. Note that your email address will - never be displayed to logged out users. Only registered users will be + never be displayed to logged out users. Only registered users will be able to see it.

diff --git a/template/en/default/account/email/confirm-new.html.tmpl b/template/en/default/account/email/confirm-new.html.tmpl index 8b12b79f1..45ef5c81c 100644 --- a/template/en/default/account/email/confirm-new.html.tmpl +++ b/template/en/default/account/email/confirm-new.html.tmpl @@ -55,7 +55,7 @@

This account will not be created if this form is not completed by - [% expiration_ts FILTER time("%B %e, %Y at %H:%M %Z") %]. + [% expiration_ts FILTER time("%B %e, %Y at %H:%M %Z") %].

diff --git a/template/en/default/account/prefs/email.html.tmpl b/template/en/default/account/prefs/email.html.tmpl index 1eeb4c721..052484174 100644 --- a/template/en/default/account/prefs/email.html.tmpl +++ b/template/en/default/account/prefs/email.html.tmpl @@ -209,8 +209,8 @@ function SetCheckboxes(setting) {

If you watch a user, it is as if you are standing in their shoes for the -purposes of getting email. Email is sent or not according to your -preferences for their relationship to the [% terms.bug %] +purposes of getting email. Email is sent or not according to your +preferences for their relationship to the [% terms.bug %] (e.g. Assignee).

diff --git a/template/en/default/account/prefs/prefs.html.tmpl b/template/en/default/account/prefs/prefs.html.tmpl index 2c560f5b6..4681299dd 100644 --- a/template/en/default/account/prefs/prefs.html.tmpl +++ b/template/en/default/account/prefs/prefs.html.tmpl @@ -85,16 +85,10 @@ [% IF current_tab.saveable %] - [% UNLESS dont_show_button %] - - - - - -
  - -
+

+ +

[% END %] [% END %] diff --git a/template/en/default/admin/users/confirm-delete.html.tmpl b/template/en/default/admin/users/confirm-delete.html.tmpl index 73a72d08d..20100a86b 100644 --- a/template/en/default/admin/users/confirm-delete.html.tmpl +++ b/template/en/default/admin/users/confirm-delete.html.tmpl @@ -441,9 +441,9 @@

- - - + + + [% INCLUDE listselectionhiddenfields %]

diff --git a/template/en/default/admin/users/create.html.tmpl b/template/en/default/admin/users/create.html.tmpl index 354ba5f2d..1ca2eb791 100644 --- a/template/en/default/admin/users/create.html.tmpl +++ b/template/en/default/admin/users/create.html.tmpl @@ -32,8 +32,8 @@ %]

- - + + [% INCLUDE listselectionhiddenfields %]

diff --git a/template/en/default/admin/users/edit.html.tmpl b/template/en/default/admin/users/edit.html.tmpl index e301ed21e..3f4fb76b9 100644 --- a/template/en/default/admin/users/edit.html.tmpl +++ b/template/en/default/admin/users/edit.html.tmpl @@ -65,7 +65,7 @@ [% %] + [% ' checked="checked"' IF perms.directbless %]> [% ']' IF perms.indirectbless %] [% END %] @@ -75,7 +75,7 @@ id="group_[% group.id %]" name="group_[% group.id %]" value="1" - [% ' checked="checked"' IF perms.directmember %] /> + [% ' checked="checked"' IF perms.directmember %]> [% '*' IF perms.regexpmember %] [% ']' IF perms.derivedmember %] @@ -115,9 +115,9 @@

- - - + + + [% INCLUDE listselectionhiddenfields %] @@ -143,9 +143,9 @@ [% IF Param('allowuserdeletion') && editusers %]

- - - + + + [% INCLUDE listselectionhiddenfields %]

diff --git a/template/en/default/admin/users/listselectvars.html.tmpl b/template/en/default/admin/users/listselectvars.html.tmpl index bd03113d5..d738b254c 100644 --- a/template/en/default/admin/users/listselectvars.html.tmpl +++ b/template/en/default/admin/users/listselectvars.html.tmpl @@ -21,6 +21,6 @@ [% BLOCK listselectionhiddenfields %] [% FOREACH field = listselectionvalues.keys %] + value="[% listselectionvalues.$field FILTER html %]"> [% END %] [% END %] diff --git a/template/en/default/admin/users/search.html.tmpl b/template/en/default/admin/users/search.html.tmpl index 55b7300a6..a1bc2809c 100644 --- a/template/en/default/admin/users/search.html.tmpl +++ b/template/en/default/admin/users/search.html.tmpl @@ -27,7 +27,7 @@ %]
- +

- + -

+ +

[% IF restrictablegroups.size %] -

+

+ [% IF editform %] [% IF !otheruser.in_group('bz_sudo_protect') %] -
+
Impersonate this user [% END %] @@ -52,9 +52,8 @@ [% IF editusers %] - + [% ELSE %] [% otheruser.name FILTER html %] [% END %] @@ -72,7 +71,7 @@ + value="" autocomplete="off"> [% IF password_complexity == "mixed_letters" %] (Password must contain at least one UPPER and one lowercase letter.) [% ELSIF password_complexity == "letters_numbers" %] @@ -80,7 +79,7 @@ [% ELSIF password_complexity == "letters_numbers_specialchars" %] (Password must contain at least one letter, a number and a special character.) [% END %] - [% IF editform %]
+ [% IF editform %]
(Enter new password to change.) [% END %] diff --git a/template/en/default/attachment/diff-file.html.tmpl b/template/en/default/attachment/diff-file.html.tmpl index cf2aadde6..38c51725b 100644 --- a/template/en/default/attachment/diff-file.html.tmpl +++ b/template/en/default/attachment/diff-file.html.tmpl @@ -43,36 +43,37 @@ incremental_restore() [% section_num = 0 %] [% FOREACH section = sections %] [% section_num = section_num + 1 %] - - -
- [% IF file.is_add %] - Added - [% ELSIF file.is_remove %] - [% IF bonsai_prefix %] - Removed - [% ELSE %] - Removed - [% END %] - [% ELSE %] - [% IF bonsai_prefix %] - - [% END %] - [% IF section.old_lines > 1 %] -  Lines [% section.old_start %]-[% section.old_start + - section.old_lines - 1 %] - [% ELSE %] - Line [% section.old_start %] - [% END %] - [% IF bonsai_prefix %] - - [% END %] -   [% section.func_info FILTER html IF section.func_info %] - [% END %] - - Link Here  -
- + + + + [% IF file.is_add %] + Added + [% ELSIF file.is_remove %] + [% IF bonsai_prefix %] + Removed + [% ELSE %] + Removed + [% END %] + [% ELSE %] + [% IF bonsai_prefix %] + + [% END %] + [% IF section.old_lines > 1 %] + Lines [% section.old_start %]-[% section.old_start + section.old_lines - 1 %] + [% ELSE %] + Line [% section.old_start %] + [% END %] + [% IF bonsai_prefix %] + + [% END %] + [%+ section.func_info FILTER html IF section.func_info %] + [% END %] + + + Link Here + + + [% current_line_old = section.old_start %] [% current_line_new = section.new_start %] [% FOREACH group = section.groups %] diff --git a/template/en/default/bug/summarize-time.html.tmpl b/template/en/default/bug/summarize-time.html.tmpl index f65ca088f..3865c02a2 100644 --- a/template/en/default/bug/summarize-time.html.tmpl +++ b/template/en/default/bug/summarize-time.html.tmpl @@ -61,7 +61,7 @@ [% IF monthly %]

Total of [% global.grand_total FILTER format("%.2f") %] hours worked

-
+
[% END %] [% IF null.size > 0 %] diff --git a/template/en/default/email/bugmail.html.tmpl b/template/en/default/email/bugmail.html.tmpl index 1a604b3b1..9473a4459 100644 --- a/template/en/default/email/bugmail.html.tmpl +++ b/template/en/default/email/bugmail.html.tmpl @@ -11,7 +11,7 @@ [% isnew = bug.lastdiffed ? 0 : 1 %] - + [% Hook.process('start') %] diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl index cc340d28b..9c6cb95cb 100644 --- a/template/en/default/list/edit-multiple.html.tmpl +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -289,7 +289,7 @@ [% IF user.is_insider %] + onClick="updateCommentTagControl(this, form)">