This repository has been archived by the owner on Mar 20, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempting to extract direct references to DP and Watchdog and other …
…URLs to external settings.
- Loading branch information
Showing
20 changed files
with
112 additions
and
106 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,10 +1,12 @@ | |||
class UserFeedbackMailer < ActionMailer::Base | class UserFeedbackMailer < ActionMailer::Base | ||
def new_message(feedback) | def new_message(feedback) | ||
@feedback = feedback | @feedback = feedback | ||
mail({ |
|
||
from: "#{feedback.name} <info@watchdog.net>", | mail( | ||
subject: "Feedback from #{feedback.email || feedback.name || 'anon'} about act.watchdog.net", | from: "#{feedback.name} <#{Settings.site.email}>", | ||
to: "me+watchdog@aaronsw.com", | subject: "Feedback from #{feedback.email || feedback.name || 'anon'} about #{Settings.site.name}", | ||
template_name: 'new_message'}).deliver | to: Settings.site.feedback_email, | ||
template_name: 'new_message' | |||
).deliver | |||
end | end | ||
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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,12 +1,12 @@ | |||
Dear <%=@member.full_name%>, | Dear <%= @member.full_name %>, | ||
|
|
||
<%=@petition.plain_text_description.html_safe%> | <%= @petition.plain_text_description.html_safe %> | ||
|
|
||
Please, sign this petition at <%=@petition_link%> | Please, sign this petition at <%= @petition_link %> | ||
|
|
||
Thanks, | Thanks, | ||
-- The folks at Watchdog.net | <%= t("site.email_signature") %> | ||
|
|
||
----------------------------- | ----------------------------- | ||
|
|
||
To stop receiving emails from us, go to: <%=@unsubscribe_link%> | To stop receiving emails from us, go to: <%= @unsubscribe_link %> |
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.