summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-06-14 16:31:03 +0200
committerJames Lopez <james@jameslopez.es>2016-06-14 16:31:03 +0200
commit9ecebaaea16d206ed20a2f4fc0021a2145c873f5 (patch)
tree346f9df3661e5cd0e31116fa19270c8e0f3fc032 /app/mailers
parentfe370b1c396cb3c290fcdb1d716a79ffe5c29169 (diff)
downloadgitlab-ce-9ecebaaea16d206ed20a2f4fc0021a2145c873f5.tar.gz
adding notifications stuff and more refactoring for exporting projects
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/emails/projects.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb
index fdf1e9f5afc..0d9558db68c 100644
--- a/app/mailers/emails/projects.rb
+++ b/app/mailers/emails/projects.rb
@@ -50,6 +50,19 @@ module Emails
subject: subject("Invitation declined"))
end
+ def project_was_exported_email(current_user, project)
+ @project = project
+ mail(to: current_user.notification_email,
+ subject: subject("Project was exported"))
+ end
+
+ def project_was_not_exported_email(current_user, project, errors)
+ @project = project
+ @errors = errors
+ mail(to: current_user.notification_email,
+ subject: subject("Project export error"))
+ end
+
def project_was_moved_email(project_id, user_id, old_path_with_namespace)
@current_user = @user = User.find user_id
@project = Project.find project_id