Fixed companions heading, time_select bug, and emails on comments
This commit is contained in:
@@ -547,6 +547,7 @@ class ApplicationController < LinguaFrancaApplicationController
|
||||
end
|
||||
last_event = time
|
||||
end
|
||||
@schedule[day][:num_locations] = data[:locations].size
|
||||
end
|
||||
|
||||
@schedule.deep_dup.each do | day, data |
|
||||
|
||||
@@ -1281,15 +1281,19 @@ class ConferencesController < ApplicationController
|
||||
comment = Comment.find_by!(id: params[:comment_id].to_i, model_type: :workshops, model_id: workshop.id)
|
||||
new_comment = comment.add_comment(current_user, params[:reply])
|
||||
|
||||
UserMailer.send_mail :workshop_comment, comment.user.locale do
|
||||
[ workshop, new_comment, comment.user ]
|
||||
unless comment.user.id == current_user.id
|
||||
UserMailer.send_mail :workshop_comment, comment.user.locale do
|
||||
[ workshop, new_comment, comment.user ]
|
||||
end
|
||||
end
|
||||
elsif params[:button] = 'add_comment'
|
||||
new_comment = workshop.add_comment(current_user, params[:comment])
|
||||
|
||||
workshop.active_facilitators.each do | u |
|
||||
UserMailer.send_mail :workshop_comment, u.locale do
|
||||
[ workshop, new_comment, u ]
|
||||
unless u.id == current_user.id
|
||||
UserMailer.send_mail :workshop_comment, u.locale do
|
||||
[ workshop, new_comment, u ]
|
||||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user