Permalink
Browse files

Added talk feedback support

  • Loading branch information...
1 parent 1f2a0bd commit 2c7b6be2332ddc3577ca69a8e8d0f67a5b83c52c @brsseb brsseb committed May 30, 2012
Showing with 34 additions and 0 deletions.
  1. +7 −0 app/models/roots_mailer.rb
  2. +17 −0 app/views/roots_mailer/talk_feedback_email.erb
  3. +10 −0 lib/tasks/infomail.rake
@@ -187,6 +187,13 @@ def feedback_email(talk, group)
:group => group
end
+ def talk_feedback_email(talk_feedback)
+ subject "Feedback on your presentation at Roots 2012"
+ recipients talk_feedback.talk.users.map &:email
+ from FROM_EMAIL
+ body :talk_feedback => talk_feedback
+ end
+
def hotel_program_email(user)
subject "#{SUBJECT_PREFIX} Hotel booking and program"
recipients user.email
@@ -0,0 +1,17 @@
+Dear <%= @talk_feedback.talk.speaker_name %>!
+
+Thank you again for helping us making this years Roots Conference the
+biggest and best ever!
+
+We have now finished summarizing the feedback we got on all the sessions,
+this is the result for <%= @talk_feedback.talk.title %>.
+
+Number of attendants : <%=h @talk_feedback.num_start %>
+Number of remaining attendants when finished: <%=h @talk_feedback.num_end %>
+Numer of green votes : <%=h @talk_feedback.num_green %>
+Number of yellow votes: <%=h @talk_feedback.num_yellow %>
+Number of read votes: <%=h @talk_feedback.num_red %>
+
+We really hope to see you again next year!
+
+The Roots Committee
View
@@ -89,6 +89,16 @@ namespace :infomail do
end
end
+ desc "Send out talk feedback to all speakers"
+ task :talk_feedback_email => :sent_email do
+ talk_feedbacks = TalkFeedback.all
+
+ for talk_feedback in talk_feedbacks
+ print "Mailing feedback for talk #{talk_feedback.talk.title}...\n"
+ RootsMailer.deliver_talk_feedback_email(talk_feedback)
+ end
+ end
+
desc "Send out information to tutorial speakers about the speaker's dinner"
task :speakers_dinner => :sent_email do
users = User.all_tutorial_speakers

0 comments on commit 2c7b6be

Please sign in to comment.