forked from multiscan/thot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added welcome email that can be sent by admin
- Loading branch information
Showing
8 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class AdminMailer < ActionMailer::Base | ||
default from: ENV['ADMIN_EMAIL'] | ||
def welcome_email(admin) | ||
@admin=admin | ||
mail(to: @admin.email, subject: "Wellcome to Thot") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
%p | ||
Hello #{@admin.name}. Welcome to Thot. | ||
%p | ||
An operator account was created forr you on | ||
=link_to "thot", root_url | ||
Please click on the link below to set your account and set your password. | ||
%p= link_to 'Click to initialize you account', edit_password_url(@admin, :reset_password_token => @admin.reset_password_token) | ||
|
||
%p | ||
For any question, please don't hesitate to contact | ||
= link_to "me", "mailto:#{ENV['ADMIN_EMAIL']}" | ||
|
||
%p | ||
Best Regards, | ||
%br | ||
giovanni |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* the humans responsible & colophon */ | ||
/* humanstxt.org */ | ||
|
||
/* TEAM */ | ||
Developer: Giovanni Cangiani | ||
Site: http://algo.epfl.ch/en/group/members/giovanni | ||
Twitter: @multiscan | ||
Location: Lausanne, Switzerland | ||
|
||
Concept: Prof. Emre Telatar | ||
Site: http://people.epfl.ch/131639 | ||
|
||
/* THANKS */ | ||
David Heinemeier Hansson (@dhh) and all the contributors of Ruby on Rails | ||
Ryan Bates (@rbates) for his great railscasts tutorials | ||
Steve Klabnik (@steveklabnik) for his work on improving Rails documentation | ||
Thibaud Guillaume-Gentil (@thibaudgg) for great help on Ruby on Rails developments and for creating Guard | ||
Zeno Crivelli (@zenoc) for introducing me to Ruby on Rails | ||
Octave Zang (@octavez) for helpfull hints about css | ||
Daniel Kehoe (@rails_apps) for the RailsApps project | ||
Mike Bardet for kindly submittin many bugs and improvement suggestions | ||
|
||
|
||
/* SITE */ | ||
Standards: HTML5, CSS3 | ||
Components: jQuery, Twitter Bootstrap | ||
Software: Ruby on Rails, MySql, Linux | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'test_helper' | ||
|
||
class AdminMailerTest < ActionMailer::TestCase | ||
# test "the truth" do | ||
# assert true | ||
# end | ||
end |