From 7d0c10e71498f2909f466fc0ccda1890595bd3ff Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 13 Apr 2015 13:58:11 +0200 Subject: Bug 1137307: Bug reports are not valid HTML5 pages r=dkl a=glob --- template/en/default/bug/edit.html.tmpl | 99 +++++++++++++++------------ template/en/default/bug/field-label.html.tmpl | 1 + template/en/default/bug/field.html.tmpl | 3 +- template/en/default/flag/list.html.tmpl | 29 ++++---- template/en/default/search/field.html.tmpl | 2 +- 5 files changed, 75 insertions(+), 59 deletions(-) diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 3ac7f6821..f9b206892 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -193,7 +193,8 @@ ([% bug.alias.join(', ') FILTER html %]) [% END %] - [% bug.short_desc FILTER quoteUrls(bug) %] - [% IF bug.check_can_change_field('short_desc', 0, 1) %] + [% can_edit_short_desc = bug.check_can_change_field('short_desc', 0, 1) %] + [% IF can_edit_short_desc %] (edit) [% END %] @@ -201,7 +202,7 @@
[% INCLUDE "bug/field-label.html.tmpl" field = bug_fields.short_desc - editable = 1 + editable = can_edit_short_desc accesskey = "s" tag_name = 'span' %] @@ -269,22 +270,26 @@ [% INCLUDE "bug/field-label.html.tmpl" - field = bug_fields.version editable = 1 %] - + field = bug_fields.version + editable = bug.check_can_change_field('version', 0, 1) %] + [% PROCESS select selname => "version" %] [%############%] [%# PLATFORM #%] [%############%] + [% can_edit_rep_platform = bug.check_can_change_field('rep_platform', 0, 1) %] [% INCLUDE "bug/field-label.html.tmpl" - field = bug_fields.rep_platform, editable = 1, accesskey = "h" %] + field = bug_fields.rep_platform, + editable = can_edit_rep_platform, + accesskey = "h" %] - [% INCLUDE bug/field.html.tmpl + [% INCLUDE bug/field.html.tmpl bug = bug, field = bug_fields.rep_platform, no_tds = 1, value = bug.rep_platform - editable = bug.check_can_change_field('rep_platform', 0, 1) %] - [%+ INCLUDE bug/field.html.tmpl + editable = can_edit_rep_platform %] + [%+ INCLUDE bug/field.html.tmpl bug = bug, field = bug_fields.op_sys, no_tds = 1, value = bug.op_sys editable = bug.check_can_change_field('op_sys', 0, 1) %] @@ -333,14 +338,15 @@ [%###############################################################%] -