diff options
author | Max Magorsch <arzano@gentoo.org> | 2020-04-18 02:38:35 +0200 |
---|---|---|
committer | Max Magorsch <arzano@gentoo.org> | 2020-04-18 02:50:54 +0200 |
commit | 35a41e63ebd5f6cf9d17419c150eb53a005d2e87 (patch) | |
tree | e0bcc21bbb1e7e200857cfbd52acb82b008a3a6d /app/mailers/glsa_mailer.rb | |
parent | Display version and last update in the footer (diff) | |
download | glsamaker-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.rb | 45 |
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 |