Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
d725139a
Commit
d725139a
authored
Apr 13, 2015
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1137307: Bug reports are not valid HTML5 pages
r=dkl a=glob
parent
2ca129b9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
51 deletions
+67
-51
edit.html.tmpl
template/en/default/bug/edit.html.tmpl
+48
-39
field-label.html.tmpl
template/en/default/bug/field-label.html.tmpl
+1
-0
field.html.tmpl
template/en/default/bug/field.html.tmpl
+2
-1
list.html.tmpl
template/en/default/flag/list.html.tmpl
+15
-10
field.html.tmpl
template/en/default/search/field.html.tmpl
+1
-1
No files found.
template/en/default/bug/edit.html.tmpl
View file @
d725139a
...
@@ -193,7 +193,8 @@
...
@@ -193,7 +193,8 @@
(<span id="alias_nonedit_display">[% bug.alias.join(', ') FILTER html %]</span>)
(<span id="alias_nonedit_display">[% bug.alias.join(', ') FILTER html %]</span>)
[% END %]
[% END %]
- <span id="short_desc_nonedit_display">[% bug.short_desc FILTER quoteUrls(bug) %]</span>
- <span id="short_desc_nonedit_display">[% bug.short_desc FILTER quoteUrls(bug) %]</span>
[% 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 %]
<small>(<a href="#" id="summary_edit_action">edit</a>)</small>
<small>(<a href="#" id="summary_edit_action">edit</a>)</small>
[% END %]
[% END %]
</span>
</span>
...
@@ -201,7 +202,7 @@
...
@@ -201,7 +202,7 @@
<div id="summary_input">
<div id="summary_input">
[% INCLUDE "bug/field-label.html.tmpl"
[% INCLUDE "bug/field-label.html.tmpl"
field = bug_fields.short_desc
field = bug_fields.short_desc
editable =
1
editable =
can_edit_short_desc
accesskey = "s"
accesskey = "s"
tag_name = 'span'
tag_name = 'span'
%]
%]
...
@@ -269,7 +270,8 @@
...
@@ -269,7 +270,8 @@
</tr>
</tr>
<tr>
<tr>
[% INCLUDE "bug/field-label.html.tmpl"
[% 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" %]
[% PROCESS select selname => "version" %]
</tr>
</tr>
...
@@ -277,13 +279,16 @@
...
@@ -277,13 +279,16 @@
[%# PLATFORM #%]
[%# PLATFORM #%]
[%############%]
[%############%]
<tr>
<tr>
[% can_edit_rep_platform = bug.check_can_change_field('rep_platform', 0, 1) %]
[% INCLUDE "bug/field-label.html.tmpl"
[% 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" %]
<td class="field_value">
<td class="field_value">
[% INCLUDE bug/field.html.tmpl
[% INCLUDE bug/field.html.tmpl
bug = bug, field = bug_fields.rep_platform,
bug = bug, field = bug_fields.rep_platform,
no_tds = 1, value = bug.rep_platform
no_tds = 1, value = bug.rep_platform
editable =
bug.check_can_change_field('rep_platform', 0, 1)
%]
editable =
can_edit_rep_platform
%]
[%+ INCLUDE bug/field.html.tmpl
[%+ INCLUDE bug/field.html.tmpl
bug = bug, field = bug_fields.op_sys,
bug = bug, field = bug_fields.op_sys,
no_tds = 1, value = bug.op_sys
no_tds = 1, value = bug.op_sys
...
@@ -333,14 +338,15 @@
...
@@ -333,14 +338,15 @@
[%###############################################################%]
[%###############################################################%]
<tr>
<tr>
<th class="field_label">
<th class="field_label">
<label for="priority" accesskey="i">
[% can_edit_priority = bug.check_can_change_field('priority', 0, 1) %]
<label [% IF can_edit_priority %]for="priority"[% END %] accesskey="i">
<a href="page.cgi?id=fields.html#importance"><u>I</u>mportance</a></label>:
<a href="page.cgi?id=fields.html#importance"><u>I</u>mportance</a></label>:
</th>
</th>
<td>
<td>
[% INCLUDE bug/field.html.tmpl
[% INCLUDE bug/field.html.tmpl
bug = bug, field = bug_fields.priority,
bug = bug, field = bug_fields.priority,
no_tds = 1, value = bug.priority
no_tds = 1, value = bug.priority
editable =
bug.check_can_change_field('priority', 0, 1)
%]
editable =
can_edit_priority
%]
[%+ INCLUDE bug/field.html.tmpl
[%+ INCLUDE bug/field.html.tmpl
bug = bug, field = bug_fields.bug_severity,
bug = bug, field = bug_fields.bug_severity,
no_tds = 1, value = bug.bug_severity
no_tds = 1, value = bug.bug_severity
...
@@ -353,14 +359,19 @@
...
@@ -353,14 +359,19 @@
<tr>
<tr>
[% INCLUDE "bug/field-label.html.tmpl"
[% INCLUDE "bug/field-label.html.tmpl"
field = bug_fields.target_milestone
field = bug_fields.target_milestone
editable =
1
editable =
bug.check_can_change_field('target_milestone', 0, 1)
%]
%]
[% PROCESS select selname = "target_milestone" %]
[% PROCESS select selname = "target_milestone" %]
</tr>
</tr>
[% END %]
[% END %]
[% IF Param("timetrackinggroup") && bug.deadline %]
[% IF Param("timetrackinggroup") && bug.deadline %]
[% INCLUDE bug/field.html.tmpl field = bug_fields.deadline, value = bug.deadline, editable = 0 %]
<tr>
<th class="field_label">
<a href="page.cgi?id=fields.html#deadline">Deadline</a>:
</th>
<td>[% bug.deadline FILTER html %]</td>
</tr>
[% END %]
[% END %]
[% END %]
[% END %]
...
@@ -371,11 +382,13 @@
...
@@ -371,11 +382,13 @@
[% BLOCK section_people %]
[% BLOCK section_people %]
<tr>
<tr>
<th class="field_label">
[% can_edit_assigned_to = bug.check_can_change_field("assigned_to", 0, 1) %]
<a href="page.cgi?id=fields.html#assigned_to">Assigned To</a>:
[% INCLUDE "bug/field-label.html.tmpl"
</th>
field = bug_fields.assigned_to
editable = can_edit_assigned_to
%]
<td>
<td>
[% IF
bug.check_can_change_field("assigned_to", 0, 1)
%]
[% IF
can_edit_assigned_to
%]
<div id="bz_assignee_edit_container" class="bz_default_hidden">
<div id="bz_assignee_edit_container" class="bz_default_hidden">
<span>
<span>
[% INCLUDE global/user.html.tmpl who = bug.assigned_to %]
[% INCLUDE global/user.html.tmpl who = bug.assigned_to %]
...
@@ -420,13 +433,14 @@
...
@@ -420,13 +433,14 @@
[% IF Param('useqacontact') %]
[% IF Param('useqacontact') %]
<tr>
<tr>
[% can_edit_qa_contact = bug.check_can_change_field("qa_contact", 0, 1) %]
[% INCLUDE "bug/field-label.html.tmpl"
[% INCLUDE "bug/field-label.html.tmpl"
field = bug_fields.qa_contact
field = bug_fields.qa_contact
editable =
1
editable =
can_edit_qa_contact
accesskey = "q"
accesskey = "q"
%]
%]
<td>
<td>
[% IF
bug.check_can_change_field("qa_contact", 0, 1)
%]
[% IF
can_edit_qa_contact
%]
<div id="bz_qa_contact_edit_container" class="bz_default_hidden">
<div id="bz_qa_contact_edit_container" class="bz_default_hidden">
<span>
<span>
[% INCLUDE global/user.html.tmpl who = bug.qa_contact %]
[% INCLUDE global/user.html.tmpl who = bug.qa_contact %]
...
@@ -482,13 +496,14 @@
...
@@ -482,13 +496,14 @@
[%############################################################################%]
[%############################################################################%]
[% BLOCK section_url_keyword_whiteboard %]
[% BLOCK section_url_keyword_whiteboard %]
<tr>
<tr>
[% can_edit_bug_file_loc = bug.check_can_change_field("bug_file_loc", 0, 1) %]
[% INCLUDE "bug/field-label.html.tmpl"
[% INCLUDE "bug/field-label.html.tmpl"
field = bug_fields.bug_file_loc
field = bug_fields.bug_file_loc
editable =
1
editable =
can_edit_bug_file_loc
accesskey = "u"
accesskey = "u"
%]
%]
<td>
<td>
[% IF
bug.check_can_change_field("bug_file_loc", 0, 1)
%]
[% IF
can_edit_bug_file_loc
%]
<span id="bz_url_edit_container" class="bz_default_hidden">
<span id="bz_url_edit_container" class="bz_default_hidden">
[% IF is_safe_url(bug.bug_file_loc) %]
[% IF is_safe_url(bug.bug_file_loc) %]
<a href="[% bug.bug_file_loc FILTER html %]" target="_blank"
<a href="[% bug.bug_file_loc FILTER html %]" target="_blank"
...
@@ -500,7 +515,7 @@
...
@@ -500,7 +515,7 @@
(<a href="#" id="bz_url_edit_action">edit</a>)</span>
(<a href="#" id="bz_url_edit_action">edit</a>)</span>
[% END %]
[% END %]
<span id="bz_url_input_area">
<span id="bz_url_input_area">
[% url_output =
PROCESS input no_td=1 inputname => "bug_file_loc" size => "40" colspan => 2
%]
[% url_output =
INCLUDE input no_td = 1 inputname = "bug_file_loc" size = 40
%]
[% IF NOT bug.check_can_change_field("bug_file_loc", 0, 1)
[% IF NOT bug.check_can_change_field("bug_file_loc", 0, 1)
AND is_safe_url(bug.bug_file_loc) %]
AND is_safe_url(bug.bug_file_loc) %]
<a href="[% bug.bug_file_loc FILTER html %]"
<a href="[% bug.bug_file_loc FILTER html %]"
...
@@ -525,10 +540,10 @@
...
@@ -525,10 +540,10 @@
<tr>
<tr>
[% INCLUDE "bug/field-label.html.tmpl"
[% INCLUDE "bug/field-label.html.tmpl"
field = bug_fields.status_whiteboard
field = bug_fields.status_whiteboard
editable =
1
editable =
bug.check_can_change_field("status_whiteboard", 0, 1)
accesskey = "w"
accesskey = "w"
%]
%]
[%
PROCESS input inputname => "status_whiteboard" size => "40" colspan => 2
%]
[%
INCLUDE input inputname = "status_whiteboard" size = 40
%]
</tr>
</tr>
[% END %]
[% END %]
...
@@ -560,9 +575,9 @@
...
@@ -560,9 +575,9 @@
[% RETURN UNLESS bug.duplicates.size %]
[% RETURN UNLESS bug.duplicates.size %]
<tr>
<tr>
<th class="field_label">
<th class="field_label">
<label
for="duplicates"
>Duplicates ([% bug.duplicates.size %])</label>:
<label>Duplicates ([% bug.duplicates.size %])</label>:
</th>
</th>
<td class="field_value"
colspan="2"
>
<td class="field_value">
<span id="duplicates">
<span id="duplicates">
[% FOREACH dupe = bug.duplicates %]
[% FOREACH dupe = bug.duplicates %]
[% INCLUDE bug/link.html.tmpl bug = dupe, link_text = dupe.id, use_alias = 1 %][% " " %]
[% INCLUDE bug/link.html.tmpl bug = dupe, link_text = dupe.id, use_alias = 1 %][% " " %]
...
@@ -593,7 +608,7 @@
...
@@ -593,7 +608,7 @@
<tr>
<tr>
<th> </th>
<th> </th>
<td
colspan="2"
id="show_dependency_tree_or_graph">
<td id="show_dependency_tree_or_graph">
Show dependency <a href="showdependencytree.cgi?id=[% bug.bug_id %]&hide_resolved=1">tree</a>
Show dependency <a href="showdependencytree.cgi?id=[% bug.bug_id %]&hide_resolved=1">tree</a>
[% IF Param('webdotbase') %]
[% IF Param('webdotbase') %]
...
@@ -734,7 +749,9 @@
...
@@ -734,7 +749,9 @@
[% BLOCK section_cclist %]
[% BLOCK section_cclist %]
<tr>
<tr>
<th class="field_label">
<th class="field_label">
<label for="newcc" accesskey="a">CC List:</label>
<label [% IF user.id %]for="newcc"[% END %] accesskey="a">
CC List:
</label>
</th>
</th>
<td>
<td>
[% IF user.id %]
[% IF user.id %]
...
@@ -780,8 +797,7 @@
...
@@ -780,8 +797,7 @@
</div>
</div>
[% END %]
[% END %]
[% IF bug.cc.size %]
[% IF bug.cc.size %]
<select id="cc" multiple="multiple" size="5"
<select id="cc" multiple="multiple" size="5" [% 'name="cc"' IF bug.user.canedit %]>
[% IF bug.user.canedit %]name="cc"[% END %]>
[% FOREACH c = bug.cc %]
[% FOREACH c = bug.cc %]
<option value="[% c FILTER email FILTER html %]">
<option value="[% c FILTER email FILTER html %]">
[% c FILTER email FILTER html %]</option>
[% c FILTER email FILTER html %]</option>
...
@@ -857,9 +873,7 @@
...
@@ -857,9 +873,7 @@
[% BLOCK section_aliases %]
[% BLOCK section_aliases %]
<tr>
<tr>
[% INCLUDE "bug/field-label.html.tmpl"
[% INCLUDE "bug/field-label.html.tmpl" field = bug_fields.alias %]
field = bug_fields.alias, editable = 1
%]
<td>
<td>
[% IF bug.alias.size %]
[% IF bug.alias.size %]
[% bug.alias.join(', ') FILTER html %]
[% bug.alias.join(', ') FILTER html %]
...
@@ -873,11 +887,8 @@
...
@@ -873,11 +887,8 @@
<br>
<br>
<div id="alias_edit_area">
<div id="alias_edit_area">
<div>
<div>
<div>
<label for="newalias" class="field_label">Add</label>
<label for="aliases">
<br>
<b>Add</b>
</label>
</div>
<input name="newalias" id="newalias" size="20">
<input name="newalias" id="newalias" size="20">
</div>
</div>
[% IF bug.alias.size %]
[% IF bug.alias.size %]
...
@@ -890,7 +901,6 @@
...
@@ -890,7 +901,6 @@
<input type="checkbox" id="removealias" name="removealias">
<input type="checkbox" id="removealias" name="removealias">
<label for="removealias">Remove selected aliases</label>
<label for="removealias">Remove selected aliases</label>
[% END %]
[% END %]
</div>
</div>
<script type="text/javascript">
<script type="text/javascript">
...
@@ -972,9 +982,8 @@
...
@@ -972,9 +982,8 @@
[% USE Bugzilla %]
[% USE Bugzilla %]
[% FOREACH field = Bugzilla.active_custom_fields %]
[% FOREACH field = Bugzilla.active_custom_fields %]
<tr>
<tr>
[% PROCESS bug/field.html.tmpl value = bug.${field.name}
[% INCLUDE bug/field.html.tmpl value = bug.${field.name}
editable = bug.check_can_change_field(field.name, 0, 1)
editable = bug.check_can_change_field(field.name, 0, 1) %]
value_span = 2 %]
</tr>
</tr>
[% IF extra_field_item %]
[% IF extra_field_item %]
<tr>
<tr>
...
@@ -1055,7 +1064,7 @@
...
@@ -1055,7 +1064,7 @@
field = bug_fields.remaining_time, editable = 1
field = bug_fields.remaining_time, editable = 1
%]
%]
[% INCLUDE "bug/field-label.html.tmpl"
[% INCLUDE "bug/field-label.html.tmpl"
field = bug_fields.percentage_complete
, editable = 1
field = bug_fields.percentage_complete
%]
%]
<th>
<th>
Gain:
Gain:
...
...
template/en/default/bug/field-label.html.tmpl
View file @
d725139a
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
[%# INTERFACE:
[%# INTERFACE:
# field: a Bugzilla::Field object
# field: a Bugzilla::Field object
# editable: if true, a label pointing to the editable field will be added.
# desc_url: An alternate link to help for the field.
# desc_url: An alternate link to help for the field.
# hidden: True if the field label should start hidden.
# hidden: True if the field label should start hidden.
# rowspan: a "rowspan" value for the label's <th>.
# rowspan: a "rowspan" value for the label's <th>.
...
...
template/en/default/bug/field.html.tmpl
View file @
d725139a
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
[%# INTERFACE:
[%# INTERFACE:
# field: a Bugzilla::Field object
# field: a Bugzilla::Field object
# value: The value of the field for this bug.
# value: The value of the field for this bug.
# field_hidden (optional): boolean; if true, the field is hidden by default.
# override_legal_values (optional): The list of legal values, for select fields.
# override_legal_values (optional): The list of legal values, for select fields.
# editable: Whether the field should be displayed as an editable
# editable: Whether the field should be displayed as an editable
# <input> or as just the plain text of its value.
# <input> or as just the plain text of its value.
...
@@ -202,7 +203,7 @@
...
@@ -202,7 +203,7 @@
value="[% value FILTER html %]">
value="[% value FILTER html %]">
<div id="[% field.name FILTER html %]_autocomplete"></div>
<div id="[% field.name FILTER html %]_autocomplete"></div>
</div>
</div>
<script type="text/javascript"
defer="defer"
>
<script type="text/javascript">
if (typeof YAHOO.bugzilla.field_array === "undefined")
if (typeof YAHOO.bugzilla.field_array === "undefined")
YAHOO.bugzilla.field_array = [];
YAHOO.bugzilla.field_array = [];
YAHOO.bugzilla.field_array["[% field.name FILTER js %]"] = [
YAHOO.bugzilla.field_array["[% field.name FILTER js %]"] = [
...
...
template/en/default/flag/list.html.tmpl
View file @
d725139a
...
@@ -23,13 +23,12 @@
...
@@ -23,13 +23,12 @@
<table id="[% flag_table_id FILTER html %]">
<table id="[% flag_table_id FILTER html %]">
[% UNLESS flag_no_header %]
[% UNLESS flag_no_header %]
<tr>
<tr>
<th colspan="3">
<th colspan="3">Flags:</th>
Flags:
</th>
[% IF any_flags_requesteeble %]
[% IF any_flags_requesteeble %]
<th>
<th>Requestee:</th>
Requestee:
[% END %]
</th>
[% IF edit_multiple_bugs %]
<th> </th>
[% END %]
[% END %]
</tr>
</tr>
[% END %]
[% END %]
...
@@ -57,7 +56,10 @@
...
@@ -57,7 +56,10 @@
[% NEXT UNLESS type.flags && type.flags.size > 0 && type.is_multiplicable && type.is_active %]
[% NEXT UNLESS type.flags && type.flags.size > 0 && type.is_multiplicable && type.is_active %]
[% IF !separator_displayed %]
[% IF !separator_displayed %]
<tbody class="bz_flag_type">
<tbody class="bz_flag_type">
<tr><td colspan="3"><hr></td></tr>
[% sep_length = 3 + (any_flags_requesteeble ? 1 : 0) + (edit_multiple_bugs ? 1 : 0) %]
<tr>
<td colspan="[% sep_length FILTER html %]"><hr></td>
</tr>
</tbody>
</tbody>
[% separator_displayed = 1 %]
[% separator_displayed = 1 %]
[% END %]
[% END %]
...
@@ -123,7 +125,7 @@
...
@@ -123,7 +125,7 @@
<option value="--do_not_change--">--do_not_change--</option>
<option value="--do_not_change--">--do_not_change--</option>
[% END %]
[% END %]
[% IF !flag || (can_edit_flag && user.can_request_flag(type)) || flag.setter_id == user.id %]
[% IF !flag || (can_edit_flag && user.can_request_flag(type)) || flag.setter_id == user.id %]
<option value="X"></option>
<option value="X"
label="X"
></option>
[% END %]
[% END %]
[% IF type.is_active && can_edit_flag %]
[% IF type.is_active && can_edit_flag %]
[% IF (type.is_requestable && user.can_request_flag(type)) || (flag && flag.status == "?") %]
[% IF (type.is_requestable && user.can_request_flag(type)) || (flag && flag.status == "?") %]
...
@@ -171,16 +173,19 @@
...
@@ -171,16 +173,19 @@
[% END %]
[% END %]
</td>
</td>
[% END %]
[% END %]
[% IF edit_multiple_bugs %]
<td>
<td>
[% IF type.is_multiplicable
&& edit_multiple_bugs
%]
[% IF type.is_multiplicable %]
<input type="checkbox" name="flags_add-[% type.id %]"
<input type="checkbox" name="flags_add-[% type.id %]"
id="flags_add-[% type.id %]" value="1">
id="flags_add-[% type.id %]" value="1">
<label for="flags_add-[% type.id %]"
<label for="flags_add-[% type.id %]"
title="If ticked, always create a new flag. Leaving it unchecked will update existing flag(s) and add a new flag if it does not exist">
title="If ticked, always create a new flag. Leaving it unchecked will
update existing flag(s) and add a new flag if it does not exist">
Always add
Always add
</label>
</label>
[% END %]
[% END %]
</td>
</td>
[% END %]
</tr>
</tr>
</tbody>
</tbody>
[% END %]
[% END %]
template/en/default/search/field.html.tmpl
View file @
d725139a
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
value="[% value FILTER html %]" [% 'autofocus' IF focus %]>
value="[% value FILTER html %]" [% 'autofocus' IF focus %]>
<div id="[% field.name FILTER html %]_autocomplete"></div>
<div id="[% field.name FILTER html %]_autocomplete"></div>
</div>
</div>
<script type="text/javascript"
defer="defer"
>
<script type="text/javascript">
if (typeof YAHOO.bugzilla.field_array === "undefined")
if (typeof YAHOO.bugzilla.field_array === "undefined")
YAHOO.bugzilla.field_array = [];
YAHOO.bugzilla.field_array = [];
YAHOO.bugzilla.field_array["[% field.name FILTER js %]"] = [
YAHOO.bugzilla.field_array["[% field.name FILTER js %]"] = [
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment