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
|
||||
if conference.email_settings.send_on_registration?
|
||||
Mailbot.registration_mail(conference, user).deliver_later
|
||||
Mailbot.registration_mail(conference, user).deliver_now
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
<%= stylesheet_link_tag "mailbot" %>
|
||||
</head>
|
||||
<body>
|
||||
</span>
|
||||
</div>
|
||||
<div id="border"></div>
|
||||
</body>
|
||||
</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 id="content">
|
||||
<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" %>
|
||||
<%= @email_body %>
|
||||
<% end %>
|
||||
<%= render "layouts/_mailbot_footer" %>
|
||||
|
||||
<%= render partial: "layouts/mailbot_header" %>
|
||||
<span style="white-space: pre-line">
|
||||
<%= @email_body %>
|
||||
</span>
|
||||
<%= render partial: "layouts/mailbot_footer" %>
|
||||
|
|
@ -114,4 +114,5 @@ Osem::Application.configure do
|
|||
end
|
||||
end
|
||||
|
||||
config.assets.precompile += ['mailbot.css']
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue