summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-04-18 02:38:35 +0200
committerMax Magorsch <arzano@gentoo.org>2020-04-18 02:50:54 +0200
commit35a41e63ebd5f6cf9d17419c150eb53a005d2e87 (patch)
treee0bcc21bbb1e7e200857cfbd52acb82b008a3a6d /app/mailers/glsa_mailer.rb
parentDisplay version and last update in the footer (diff)
downloadglsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.tar.gz
glsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.tar.bz2
glsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.zip
Add the initial version of the rewritten glsamaker
The glsamaker has been completly rewritten in go. It is using postgres instead of mysql now. The look and feel is based on tyrian. Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'app/mailers/glsa_mailer.rb')
-rw-r--r--app/mailers/glsa_mailer.rb45
1 files changed, 0 insertions, 45 deletions
diff --git a/app/mailers/glsa_mailer.rb b/app/mailers/glsa_mailer.rb
deleted file mode 100644
index 1f6b54a..0000000
--- a/app/mailers/glsa_mailer.rb
+++ /dev/null
@@ -1,45 +0,0 @@
-class GlsaMailer < ActionMailer::Base
- default :from => GLSAMAKER_FROM_EMAIL,
- :content_type => 'text/plain'
-
- def new_request(recipient, glsa, requestor)
- @requestor = requestor
- @glsa = glsa
-
- mail(:to => recipient.email,
- :subject => "[GLSAMaker] New request: #{glsa.last_revision.title}")
- end
-
- def edit(recipient, glsa, diff, editor)
- @editor = editor
- @diff = diff
- @glsa = glsa
-
- mail(:to => recipient.email,
- :subject => "[GLSAMaker] Draft edit: #{glsa.last_revision.title}")
- end
-
- def comment(recipient, glsa, comment, commentator)
- @commentator = commentator
- @comment = comment
- @glsa = glsa
-
- mail(:to => recipient.email,
- :subject => "[GLSAMaker] Draft commented: #{glsa.last_revision.title}")
- end
-
- def approval(recipient, glsa)
- @glsa = glsa
-
- mail(:to => recipient.email,
- :subject => "[GLSAMaker] Draft approved: #{glsa.last_revision.title}")
- end
-
- def text(recipient, subject, text, footer)
- @text = text
- @footer = footer
-
- mail(:to => recipient.email,
- :subject => subject)
- end
-end