From 6ffb51d5e4588d65895854b88a1d1ef089cd2283 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sun, 13 Dec 2009 22:52:18 +0000 Subject: Bug 524251: Move the bug visibility controls to the right of the timetracking and attachments tables Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- template/en/default/bug/edit.html.tmpl | 199 ++++++++++++++++----------------- 1 file changed, 95 insertions(+), 104 deletions(-) (limited to 'template') diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 88952d11a..bfb2622e8 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -211,25 +211,27 @@ - - [% PROCESS section_restrict_visibility %] - [% IF user.is_timetracker %] -
- [% PROCESS section_timetracking %] - [% END %] - - -[%# *** Attachments *** %] + + + +
+ [% IF user.is_timetracker %] + [% PROCESS section_timetracking %] + [% END %] - [% PROCESS attachment/list.html.tmpl - attachments = bug.attachments - bugid = bug.bug_id - num_attachment_flag_types = bug.num_attachment_flag_types - show_attachment_flags = bug.show_attachment_flags - %] + [%# *** Attachments *** %] + [% PROCESS attachment/list.html.tmpl + attachments = bug.attachments + bugid = bug.bug_id + num_attachment_flag_types = bug.num_attachment_flag_types + show_attachment_flags = bug.show_attachment_flags + %] - [% PROCESS comment_box %] + [% PROCESS comment_box %] + + [% PROCESS section_restrict_visibility %] +
[%# *** Additional Comments *** %]
@@ -647,103 +649,92 @@ [% BLOCK section_restrict_visibility %] [% RETURN UNLESS bug.groups.size %] - [% inallgroups = 1 %] - [% inagroup = 0 %] - [% emitted_description = 0 %] - - [% FOREACH group = bug.groups %] - [% SET inallgroups = 0 IF NOT group.ingroup %] - [% SET inagroup = 1 IF group.ison %] - - [% NEXT IF group.mandatory %] - - [% IF NOT emitted_description %] - [% emitted_description = 1 %] - - - - - - [% "
- - -
- Only users in all of the selected groups can view this [% terms.bug %]: -
- - (Unchecking all boxes makes this a more public [% terms.bug %].) - -
- [% END %] +
+ [% inallgroups = 1 %] + [% inagroup = 0 %] + [% emitted_description = 0 %] + + [% FOREACH group = bug.groups %] + [% SET inallgroups = 0 IF NOT group.ingroup %] + [% SET inagroup = 1 IF group.ison %] + + [% NEXT IF group.mandatory %] + + [% IF NOT emitted_description %] + [% emitted_description = 1 %] +
+ Only users in all of the selected groups can view this + [%+ terms.bug %]: +

+ Unchecking all boxes makes this a more public [% terms.bug %]. +

+
+ [% END %] - [% IF group.ingroup %] - - [% END %] - - -
- [% END %] + [% IF group.ingroup %] + + [% END %] - [% IF emitted_description %] - [% IF NOT inallgroups %] - Only members of a group can change the visibility of [% terms.abug %] for that group. + +
[% END %] -
" IF NOT inagroup %] - [% END %] - [% IF inagroup %] - [% IF NOT emitted_description %] - [% emitted_description = 1 %] - + [% IF emitted_description %] + [% IF NOT inallgroups %] +

Only members of a group can change the + visibility of [% terms.abug %] for that group.

+ [% END %] [% END %] - - - - -
- - -
- Users in the roles selected below can always view this [% terms.bug %]: -
- - (The assignee - [% IF (Param('useqacontact')) %] - and QA contact - [% END %] - can always see [% terms.abug %], and this section does not take effect unless - the [% terms.bug %] is restricted to at least one group.) - + + [% IF inagroup %] +
+ Users in the roles selected below can always view + this [% terms.bug %]: +
+
+
+ [% user_can_edit_accessible = + bug.check_can_change_field("reporter_accessible", 0, 1) + %] + [% IF user_can_edit_accessible %] + + [% END %] + +
-
- [% user_can_edit_accessible = bug.check_can_change_field("reporter_accessible", 0, 1) %] - [% IF user_can_edit_accessible %] - - [% END %] - - -
-
- [% user_can_edit_accessible = bug.check_can_change_field("cclist_accessible", 0, 1) %] - [% IF user_can_edit_accessible %] - - [% END %] - - -
+ [% user_can_edit_accessible = + bug.check_can_change_field("cclist_accessible", 0, 1) + %] + [% IF user_can_edit_accessible %] + + [% END %] + +
-
- [% END %] +

+ The assignee + [% IF (Param('useqacontact')) %] + and QA contact + [% END %] + can always see [% terms.abug %], and this section does not + take effect unless the [% terms.bug %] is restricted to at + least one group. +

+
+ [% END %] + [%# bz_group_visibility_section %] [% END %] [%############################################################################%] -- cgit v1.2.3-24-g4f1b