Author SHA1 Message Date
gurix 4082a8c6c9 Remove unnecessary images 2017-03-28 00:02:23 +02:00
gurix 995fd10a5d Using proper mailing for the future 2017-03-25 18:21:58 +01:00
11 changed files with 99 additions and 18 deletions
+3
View File
@@ -22,6 +22,9 @@ gem 'sdoc', '~> 0.4.0', group: :doc
gem 'rails_bootstrap_navbar'
# This gem hooks up your Rails application with Roadie to help you generate HTML emails.
gem 'roadie-rails', '~> 1.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
+9
View File
@@ -66,6 +66,8 @@ GEM
execjs
coffee-script-source (1.10.0)
concurrent-ruby (1.0.2)
css_parser (1.4.8)
addressable
debug_inspector (0.0.2)
diff-lcs (1.2.5)
dotenv (2.1.1)
@@ -200,6 +202,12 @@ GEM
rdoc (4.2.2)
json (~> 1.4)
remotipart (1.2.1)
roadie (3.2.1)
css_parser (~> 1.4.5)
nokogiri (>= 1.5.0, < 1.8.0)
roadie-rails (1.1.1)
railties (>= 3.0, < 5.1)
roadie (~> 3.1)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
@@ -291,6 +299,7 @@ DEPENDENCIES
rails_12factor
rails_admin
rails_bootstrap_navbar
roadie-rails (~> 1.0)
rspec-rails (~> 3.0)
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

+5
View File
@@ -74,3 +74,8 @@ body
.text-success
color: $brand-success
.portrait
display: block
float: left
margin: 12px
+2
View File
@@ -1,4 +1,6 @@
class SupporterMailer < ApplicationMailer
include Roadie::Rails::Automatic
def welcome_email(supporter)
@supporter = supporter
mail(to: @supporter.email, subject: I18n.t('welcome_email.subject'))
+1
View File
@@ -2,5 +2,6 @@ doctype html
html
head
meta content=("text/html; charset=UTF-8") http-equiv="Content-Type" /
= stylesheet_link_tag 'application', media: 'all'
body style='padding: 20px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;'
= yield
@@ -1,22 +1,34 @@
p
strong Hallo #{@supporter.first_name},
p Du bist nun ein Teil der Bewegung!
p Hallo #{@supporter.first_name}, du bist nun ein Teil der Bewegung!
p Wir informieren dich per E-Mail über die nächsten Schritte und kommen aktiv auf dich zu. Auf <a href="https://www.hanflegal.ch/initiative">https://www.hanflegal.ch/initiative</a> informieren wir über laufende Aktivitäten.
p
b Was kannst du machen?
p
| Was kannst du machen?
ul
li Versende den Link <a href="https://ch420.herokuapp.com">https://ch420.herokuapp.com</a> an all deine Freunde und Bekannte
li Versende den Link <a href="https://hanflegal.ch/ch420">https://hanflegal.ch/ch420</a> an all deine Freunde und Bekannte
li Folge uns auf <a href="https://www.facebook.com/vereinlegalizeit">Facebook</a> und <a href="https://twitter.com/VereinLegalize">Twitter</a>
li Teile unser Projekt in den sozialen Medien mit dem Hashtag #CH420
li Erzähle allen von unserem Vorhaben und bitte Sie mitzumachen
li Werde Mitglied beim <a href="https://www.hanflegal.ch">Verein Legalize it!</a>
li Besuche unser <a href="https://forum.hanflegal.ch">Forum</a>. Da findest du eine Jobbörse und spannende Projekte bei denen wir deine Hilfe brauchen können
p
| Hanfige Grüsse,
em die Initianten
p
.portrait
= image_tag 'nino.png', class: 'img-rounded', width: 150
br
strong Nino Forrer
br
a href="mailto: nino@hanflegal.ch" nino@hanflegal.ch
br
em Strategie / Presse
.portrait
= image_tag 'markus.png', class: 'img-rounded', width: 150
br
strong Markus Graf
br
a href="mailto: markus@hanflegal.ch" markus@hanflegal.ch
br
em Inhalt / Technik
@@ -0,0 +1,36 @@
p Salut #{@supporter.first_name}, Tu fais maintenant partie du mouvement!
p Nous allons tenvoyer par e-mail les informations sur les prochaines étapes. Sur <a href="https://www.hanflegal.ch/initiative">https://www.hanflegal.ch/initiative</a> initiative nous informons des activités en cours.
p
| Que peux-tu faire?
ul
li Envoie le <a href="mailto:?subject=Oui, je veux légaliser le cannabis en Suisse.&body=Envoie un signe et montre que tu nous soutiens sur https://ch420.herokuapp.com. Unterstütze uns auch du.">lien pour le formulaire en ligne</a> à tous tes amis et connaissances
li Suis-nous sur <a href="https://www.facebook.com/vereinlegalizeit">Facebook</a> et <a href="https://twitter.com/VereinLegalize">Twitter</a>
li Partage notre projet sur les réseaux sociaux avec le hashtag #CH420
li Raconte à tout le monde ce que nous avons prévu et demande leurs de participer
li Deviens un <a href="https://www.hanflegal.ch">membre de lassociation Legalize it!</a>
p
| Hanfige Grüsse,
em die Initianten
p
.portrait
= image_tag 'nino.png', class: 'img-rounded', width: 150
br
strong Nino Forrer
br
a href="mailto: nino@hanflegal.ch" nino@hanflegal.ch
br
em Strategie / Presse
.portrait
= image_tag 'markus.png', class: 'img-rounded', width: 150
br
strong Markus Graf
br
a href="mailto: markus@hanflegal.ch" markus@hanflegal.ch
br
em Inhalt / Technik
@@ -1,21 +1,34 @@
p
strong Ciao #{@supporter.first_name},
p Ora sei una parte del movimento!
p Ciao #{@supporter.first_name}, ora sei una parte del movimento!
p Vi informeremo via e-mail circa i prossimi passi e diventare attivo. Su <a href="https://www.hanflegal.ch/initiative">https://www.hanflegal.ch/initiative</a> può informarsi sulle attività in corso.
p
b Che cosa puoi fare?
p
| Che cosa puoi fare?
ul
li Invia il <a href="https://ch420.herokuapp.com">https://ch420.herokuapp.com</a> a tutti i tuoi amici e conoscenti
li Invia il <a href="https://hanflegal.ch/ch420">https://hanflegal.ch/ch420</a> a tutti i tuoi amici e conoscenti
li Seguici su <a href="https://www.facebook.com/vereinlegalizeit">Facebook</a> e <a href="https://twitter.com/VereinLegalize">Twitter</a>
li Racconta die nostri progetti sui social media con lHashtag #CH420
li Di a tutti di unirsi ai nostri progetti
li Diventa un membro dell <a href="https://www.hanflegal.ch">associazione Verein Legalize it!</a>
li Visita il nostro <a href="https://forum.hanflegal.ch">Forum</a>. Puoi trovare scambi di lavoro e progetti interessanti in cui potrebbe esser richiesto il tuo aiuto.
p
| Saluti,
em hanflegal.ch
.portrait
= image_tag 'nino.png', class: 'img-rounded', width: 150
br
strong Nino Forrer
br
a href="mailto: nino@hanflegal.ch" nino@hanflegal.ch
br
em Strategie / Presse
.portrait
= image_tag 'markus.png', class: 'img-rounded', width: 150
br
strong Markus Graf
br
a href="mailto: markus@hanflegal.ch" markus@hanflegal.ch
br
em Inhalt / Technik
@@ -1,7 +1,7 @@
# Preview all emails at http://localhost:3000/rails/mailers/supporter_mailer
class SupporterMailerPreview < ActionMailer::Preview
def welcome
I18n.locale = 'it'
I18n.locale = :fr
SupporterMailer.welcome_email(Supporter.first)
end
end