Add meeting info to minutes mails. myproject #2990

pull/6827/head
Felix Schäfer 14 years ago
parent 93c0f4aa9a
commit 45fe61c5c6
  1. 13
      app/views/mailer/send_minutes.text.html.rhtml
  2. 11
      app/views/mailer/send_minutes.text.plain.rhtml
  3. 4
      lib/redmine_meeting/patch_redmine_classes.rb

@ -1,4 +1,11 @@
<h1><%=h @minutes.meeting.project.name %>: <%= link_to(h(@minutes.meeting.title), @meeting_url) %></h1>
<em><%=h @minutes.meeting.author %></em>
<h1><%=h @meeting.project.name %>: <%= link_to h(@meeting.title), @meeting_url %></h1>
<em><%=h @meeting.author %></em>
<p><%=l :text_review_minutes, :author => h(User.current), :link => link_to(l(:text_minutes_for_meeting, :meeting => @minutes.meeting.title), @minutes_url) %></p>
<ul>
<li><%=l :field_start_time %>: <%= format_date @meeting.start_date %> <%= format_time @meeting.start_time, false %>-<%= format_time @meeting.end_time, false %></li>
<li><%=l :field_location %>: <%=h @meeting.location %></li>
<li><%=l :field_participants_invited %>: <%=h @meeting.participants.invited.sort.join("; ") %></li>
<li><%=l :field_participants_attended %>: <%=h @meeting.participants.attended.sort.join("; ") %></li>
</ul>
<p><%=l :text_review_minutes, :author => h(User.current), :link => link_to(l(:text_minutes_for_meeting, :meeting => @meeting.title), @minutes_url) %></p>

@ -1,4 +1,9 @@
<%= @meeting_url %>
<%= @minutes.meeting.author %>
<%= @meeting.project.name %>: <%= @meeting.title %> (<%= @meeting_url %>)
<%= @meeting.author %>
<%=l :text_review_minutes, :author => User.current, :link => l(:text_minutes_for_meeting, :meeting => @minutes.meeting.title) + " (#{@minutes_url})" %>
<%=l :field_start_time %>: <%= format_date @meeting.start_date %> <%= format_time @meeting.start_time, false %>-<%= format_time @meeting.end_time, false %>
<%=l :field_location %>: <%=h @meeting.location %>
<%=l :field_participants_invited %>: <%= @meeting.participants.invited.sort.join("; ") %>
<%=l :field_participants_attended %>: <%= @meeting.participants.attended.sort.join("; ") %>
<%=l :text_review_minutes, :author => User.current, :link => l(:text_minutes_for_meeting, :meeting => @meeting.title) + " (#{@minutes_url})" %>

@ -31,6 +31,7 @@ module Plugin
subject "[#{meeting.project.name}] #{l(:label_meeting_minutes)}: #{meeting.title}"
body :minutes => minutes,
:minutes_url => url_for(:controller => 'meetings', :action => 'show', :id => meeting, :tab => 'minutes'),
:meeting => meeting,
:meeting_url => url_for(:controller => 'meetings', :action => 'show', :id => meeting)
render_multipart('send_minutes', body)
end
@ -39,6 +40,9 @@ module Plugin
def self.included(receiver)
receiver.extend ClassMethods
receiver.send :include, InstanceMethods
receiver.class_eval do
helper :meetings
end
end
end
end

Loading…
Cancel
Save