-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
notification e-mails send out on changeset creation and application
- Loading branch information
Showing
18 changed files
with
158 additions
and
20 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
Empty file.
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,4 @@ | ||
class ApplicationMailer < ActionMailer::Base | ||
default from: "transitland@mapzen.com" # TODO: change to a transit.land address | ||
layout 'mailer' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class ChangesetMailer < ApplicationMailer | ||
def creation(changeset_id) | ||
@changeset = Changeset.find(changeset_id) | ||
mail to: @changeset.user.email, | ||
subject: "Hello from Transitland. We've received your contribution!" | ||
end | ||
|
||
def application(changeset_id) | ||
@changeset = Changeset.find(changeset_id) | ||
mail to: @changeset.user.email, | ||
subject: "Hello from Transitland. We've added your contribution!" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<p><strong>Hello <%= @changeset.user.name.presence %></strong></p> | ||
|
||
<p>Thank you for submitting a feed to the Transitland Feed Registry!</p> | ||
|
||
<p>Your feed is now working its way through the submission process. As soon as the Transitland team reviews your feed, you will see its operators listed in the <a href="https://transit.land/feed-registry/">Feed Registry</a>, and it will be accessible in the <a href="https://transit.land/playground/">Transitland Playground</a> and <a href="https://transit.land/how-it-works/#slide-3">Datastore API</a>.</p> | ||
|
||
<p>After that, we will start importing the contents of the feed, which adds the stops, routes, and schedule to the Datastore. In some cases, there are issues in the import process that could delay or make the feed unacceptable for posting.</p> | ||
|
||
<p>You will be notified again when your feed has been added to the Feed Registry and the Datastore, or if we encounter any problems along the way.</p> | ||
|
||
<p>If you have any questions, you can contact the Transitland team at <a href="mailto:transitland@mapzen.com">transitland@mapzen.com</a>.</p> |
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,11 @@ | ||
Hello <%= @changeset.user.name.presence %> | ||
|
||
Thank you for submitting a feed to the Transitland Feed Registry! | ||
|
||
Your feed is now working its way through the submission process. As soon as the Transitland team reviews your feed, you will see its operators listed in the Feed Registry at https://transit.land/feed-registry/, and it will be accessible in the Transitland Playground and Datastore API. | ||
|
||
After that, we will start importing the contents of the feed, which adds the stops, routes, and schedule to the Datastore. In some cases, there are issues in the import process that could delay or make the feed unacceptable for posting. | ||
|
||
You will be notified again when your feed has been added to the Feed Registry and the Datastore, or if we encounter any problems along the way. | ||
|
||
If you have any questions, you can contact the Transitland team at transitland@mapzen.com |
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,9 @@ | ||
<p><strong>Hello <%= @changeset.user.name.presence %></strong></p> | ||
|
||
<p>Thank you again for submitting a feed to the Transitland Feed Registry! Your feed has been reviewed, and you can now find it in <a href="https://transit.land/feed-registry/">the listings</a>.</p> | ||
|
||
<p>We're starting to import the feed into the Transitland Datastore. This will make available the stops, routes, and schedule data that are contained in the feed. This import process may take a few more hours or days. If we run into any problems along the way, we'll be in touch.</p> | ||
|
||
<p>Contributions from community members like you help us build Transitland. If you know of other feeds, please submit them, too!</p> | ||
|
||
<p>If you have any questions, you can contact the Transitland team at <a href="mailto:transitland@mapzen.com">transitland@mapzen.com</a>.</p> |
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,9 @@ | ||
Hello <%= @changeset.user.name.presence %> | ||
|
||
Thank you again for submitting a feed to the Transitland Feed Registry! Your feed has been reviewed, and you can now find it in the listings at https://transit.land/feed-registry/ | ||
|
||
We're starting to import the feed into the Transitland Datastore. This will make available the stops, routes, and schedule data that are contained in the feed. This import process may take a few more hours or days. If we run into any problems along the way, we'll be in touch. | ||
|
||
Contributions from community members like you help us build Transitland. If you know of other feeds, please submit them, too! | ||
|
||
If you have any questions, you can contact the Transitland team at transitland@mapzen.com |
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,5 @@ | ||
<html> | ||
<body> | ||
<%= yield %> | ||
</body> | ||
</html> |
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 @@ | ||
<%= yield %> |
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,3 @@ | ||
describe ChangesetMailer do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Preview all emails at http://localhost:3000/rails/mailers/changeset_mailer | ||
class ChangesetMailerPreview < ActionMailer::Preview | ||
|
||
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