<%# requirements: url, date, from, to, subject, sender, msg_id, actions, version %> <%# Copyright (C) 2002 Yoshinori K. Okuji This file is part of BugCommunicator. BugCommunicator is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. BugCommunicator is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with BugCommunicator; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA %> Date: <%= @@date %> From: BugCommunicator <<%= @@from %>> To: <%= @@to %> Subject: <%= @@subject %> Sender: <%= @@sender %> Message-ID: <%= @@msg_id %> Mime-Version: 1.0 (generated by BugCommunicator <%= @@version %>) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BugCommunicator-Version: <%= @@version %> X-BugCommunicator-URL: <%= url %> This is a confirmation mail sent by BugCommunicator <%= @@version %>. The detailed information is described below. If you approve the request, send a reply to <<%= @@from %>>. Note that you must keep the subject intact, when writing a reply. It doesn't matter if you add a prefix (such as ``Re:'') into the subject. If you negate the request, just ignore this mail. The request will be expired automatically. Here is the details information on the request: <% @@actions.to_a.each do |action| case action when AddProjectAction %> Type: Add a new project Requester: <%= action.requester %> Project: <%= action.project %> Administrators: <%= action.admins.collect {|a| "<#{a}>"}.join(', ') %> Lists: <%= action.lists.collect {|l| "<#{l}>"}.join(', ') %><% when RemoveProjectAction %> Type: Remove a project Requester: <%= action.requester %> Project: <%= action.project %><% when ChangeAdminsAction %> Type: Change administrators Requester: <%= action.requester %> Project: <%= action.project %> Old Administrators: <%= action.old_admins.join(', ') %> New Administrators: <%= action.new_admins.join(', ') %><% when ChangeListsAction %> Type: Change mailing lists Requester: <%= action.requester %> Project: <%= action.project %> Old Mailing Lists: <%= action.old_lists.join(', ') %> New Mailing Lists: <%= action.new_lists.join(', ') %><% when AddFieldAction field = action.field %> Type: Add a field Requester: <%= action.requester %> Project: <%= action.project %> Name: <%= field.name %> Display Name: <%= field.display_name %> Note: <%= field.note %> Admin Only: <%= if field.admin_only? then 'Yes' else 'No' end %> Searchable: <%= if field.searchable? then 'Yes' else 'No' end %><% if field.kind_of?(SelectionField) %> Keywords: <%= field.keywords.join(', ') %> Always Set: <%= if field.always_set? then 'Yes' else 'No' end %><% else %> Can Be Empty: <%= if field.can_be_empty? then 'Yes' else 'No' end %> Multiple Lines: <%= if field.multiple_lines? then 'Yes' else 'No' end %><% end when RemoveFieldAction %> Type: Remove a field Requester: <%= action.requester %> Project: <%= action.project %> Name: <%= action.field.name %><% when ChangeFieldAction old_f = action.old_field new_f = action.new_field %> Type: Change a field Requester: <%= action.requester %> Project: <%= action.project %> Name: <%= old_f.name %><% if old_f.display_name != new_f.display_name %> Display Name: <%= old_f.display_name %> => <%= new_f.display_name %><% end if old_f.note != new_f.note %> Note: <%= old_f.note %> => <%= new_f.note %><% end if old_f.admin_only != new_f.admin_only %> Admin Only: <%= if old_f.admin_only? then 'Yes => No' else 'No => Yes' end %><% end if old_f.searchable != new_f.searchable %> Searchable: <%= if old_f.searchable? then 'Yes => No' else 'No => Yes' end %><% end if old_f.kind_of?(SelectionField) if old_f.keywords != new_f.keywords %> Keywords: <%= old_f.keywords.join(', ') %> => <%= new_f.keywords.join(', ') %><% end if old_f.always_set != new_f.always_set %> Always Set: <%= if old_f.always_set? then 'Yes => No' else 'No => Yes' end %><% end else if old_f.can_be_empty != new_f.can_be_empty %> Can Be Empty: <%= if old_f.can_be_empty? then 'Yes => No' else 'No => Yes' end %><% end if old_f.multiple_lines != new_f.multiple_lines %> Multiple Lines: <%= if old_f.multiple_lines? then 'Yes => No' else 'No => Yes' end %><% end if old_f.regexp != new_f.regexp %> Regular Expression: <%= old_f.regexp %> => <%= new_f.regexp %><% end end end %> <% end %>