FOR DEMO ONLY
This commit is contained in:
parent
26bb7fcdca
commit
c97b081b2c
7 changed files with 10 additions and 37 deletions
|
|
@ -69,7 +69,7 @@ class Registration < ApplicationRecord
|
||||||
|
|
||||||
def send_registration_mail
|
def send_registration_mail
|
||||||
if conference.email_settings.send_on_registration?
|
if conference.email_settings.send_on_registration?
|
||||||
Mailbot.registration_mail(conference, user).deliver_later
|
Mailbot.registration_mail(conference, user).deliver_now
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@
|
||||||
<%= stylesheet_link_tag "mailbot" %>
|
<%= stylesheet_link_tag "mailbot" %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<div id="border"></div>
|
<div id="border"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
%html{lang: 'en'}
|
|
||||||
%head
|
|
||||||
%meta{charset: 'utf-8'}
|
|
||||||
%meta{name: 'viewport', content: 'width=device-width, initial-scale=1'}
|
|
||||||
%meta{content: 'Snap!Con -- A conference all about Snap!, a programing language from UC Berkeley.', name: 'description'}
|
|
||||||
%meta{content: 'Michael Ball, Brian Harvey, Jens Moenig, Bernat Romagosa, Dan Garcia, Lauren Mock', name: 'author'}
|
|
||||||
= stylesheet_link_tag "mailbot"
|
|
||||||
%body
|
|
||||||
#border
|
|
||||||
|
|
@ -24,8 +24,6 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<span style="white-space: pre-line"></span>
|
<span style="white-space: pre-line"></span>
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
%html{lang: 'en'}
|
|
||||||
%head
|
|
||||||
%meta{charset: 'utf-8'}
|
|
||||||
%meta{name: 'viewport', content: 'width=device-width, initial-scale=1'}
|
|
||||||
%title= 'Email'
|
|
||||||
%meta{content: 'Snap!Con -- A conference all about Snap!, a programing language from UC Berkeley.', name: 'description'}
|
|
||||||
%meta{content: 'Michael Ball, Brian Harvey, Jens Moenig, Bernat Romagosa, Dan Garcia, Lauren Mock', name: 'author'}
|
|
||||||
= stylesheet_link_tag "mailbot"
|
|
||||||
%body
|
|
||||||
#border
|
|
||||||
.row
|
|
||||||
.col-md-2
|
|
||||||
- if !@logo.nil?
|
|
||||||
= image_tag(@logo, style: "display:block")
|
|
||||||
.col-md-10
|
|
||||||
%h1
|
|
||||||
#content
|
|
||||||
%span{:style => "white-space: pre-line"}
|
|
||||||
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<%= render "layouts/_mailbot_header" %>
|
<%= render partial: "layouts/mailbot_header" %>
|
||||||
<%= @email_body %>
|
<span style="white-space: pre-line">
|
||||||
<% end %>
|
<%= @email_body %>
|
||||||
<%= render "layouts/_mailbot_footer" %>
|
</span>
|
||||||
|
<%= render partial: "layouts/mailbot_footer" %>
|
||||||
|
|
@ -114,4 +114,5 @@ Osem::Application.configure do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
config.assets.precompile += ['mailbot.css']
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue