[%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # implied. See the License for the specific language governing # rights and limitations under the License. # # The Original Code is the Bugzilla Bug Tracking System. # # The Initial Developer of the Original Code is Netscape Communications # Corporation. Portions created by Netscape are # Copyright (C) 1998 Netscape Communications Corporation. All # Rights Reserved. # # Contributor(s): Gervase Markham # Vaskin Kissoyan # Frédéric Buclin # Guy Pyrzak #%] [% PROCESS global/variables.none.tmpl %]
[% initial_action_shown = 0 %] [% show_resolution = 0 %] [% bug_status_select_displayed = 0 %] [% closed_status_array = [] %] [%# These actions are based on the current custom workflow. %] [% FOREACH bug_status = bug.status.can_change_to %] [% NEXT IF bug.isunconfirmed && bug_status.is_open && !bug.user.canconfirm %] [% NEXT IF bug.isopened && !bug.isunconfirmed && bug_status.is_open && !bug.user.canedit %] [% NEXT IF (!bug_status.is_open || !bug.isopened) && !bug.user.canedit && !bug.user.isreporter %] [%# Special hack to only display UNCO or REOP when reopening, but not both; # for compatibility with older versions. %] [% NEXT IF !bug.isopened && (bug.everconfirmed && bug_status.name == "UNCONFIRMED" || !bug.everconfirmed && bug_status.name == "REOPENED") %] [% IF NOT bug_status_select_displayed %] [% bug_status_select_displayed = 1 %] [% END %] [% IF bug.isopened %] [% IF bug.resolution %] [% PROCESS initial_action %] [% END %] [% ELSIF bug.resolution != "MOVED" || bug.user.canmove %] [% PROCESS initial_action %] [% show_resolution = 1 %] [% END %] [% END %] [% IF bug_status_select_displayed %] [% ELSE %] [% display_value("bug_status", bug.bug_status) FILTER html %] [% IF bug.resolution %] [%+ display_value("resolution", bug.resolution) FILTER html %] [% IF bug.dup_id %] of [% "${terms.bug} ${bug.dup_id}" FILTER bug_link(bug.dup_id) FILTER none %] [% END %] [% END %] [% END %] [% IF bug.user.canedit || bug.user.isreporter %] [% IF show_resolution %] [% PROCESS select_resolution %] [% END %] of [% "${terms.bug} ${bug.dup_id}" FILTER bug_link(bug.dup_id) FILTER none %] (edit) [% IF bug.dup_id %] [% END %] [% END %]
[%# Common actions %] [% BLOCK initial_action %] [% IF !initial_action_shown %] [% IF !bug.isopened %] [% show_resolution = 1 %] [% filtered_status = bug.bug_status FILTER js %] [% closed_status_array.push(filtered_status) %] [% END %] [% initial_action_shown = 1 %] [% END %] [% END %] [% BLOCK select_resolution %] [% END %]