Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcelo Briones <ing@marcelobriones.com.ar>2015-02-19 06:04:25 +0300
committerMarcelo Briones <ing@marcelobriones.com.ar>2015-03-04 01:45:57 +0300
commitb154d87070570269f7b165007f19eda783153aca (patch)
treea494c021e74cd7bf360ff5a2874c24fcad9c80b3 /app/mailers
parentba7f0cf2ed55e235f4c47ab2c2817d31b9572764 (diff)
Exports user photos as zip file
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/export_mailer.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/mailers/export_mailer.rb b/app/mailers/export_mailer.rb
index 24e34d0f6..a0bc8b5e5 100644
--- a/app/mailers/export_mailer.rb
+++ b/app/mailers/export_mailer.rb
@@ -19,4 +19,21 @@ class ExportMailer < ActionMailer::Base
end
end
+ def export_photos_complete_for(user)
+ @user = user
+
+ mail(to: @user.email, subject: I18n.t('notifier.export_photos_email.subject', name: @user.name)) do |format|
+ format.html { render 'users/export_photos_email' }
+ format.text { render 'users/export_photos_email' }
+ end
+ end
+
+ def export_photos_failure_for(user)
+ @user = user
+
+ mail(to: @user.email, subject: I18n.t('notifier.export_photos_failure_email.subject', name: @user.name)) do |format|
+ format.html { render 'users/export_photos_failure_email' }
+ format.text { render 'users/export_photos_failure_email' }
+ end
+ end
end