-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1567 from shalott/issue_3815_assignments_hanging
Fixes for assignments crashing on invalid signups (issue 3815)
- Loading branch information
Showing
8 changed files
with
128 additions
and
53 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
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
17 changes: 17 additions & 0 deletions
17
app/views/user_mailer/invalid_signup_notification.html.erb
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,17 @@ | ||
<% content_for :message do %> | ||
<p>Dear Collection Maintainers!</p> | ||
|
||
<p>We have found some invalid sign-ups in your challenge <%= link_to @collection.title, collection_url(@collection) %>. Potential matches cannot be generated until these are cleaned up. </p> | ||
|
||
<p>Invalid sign-ups are often duplicates, or don't meet the requirements you've set for your challenge. Unfortunately, there is no automatic way to fix them, so you will have to manually edit or delete them. For more details, see <a href="<%= root_url %>help/challenge_matching.html#invalid_signups">the challenge matching help</a>. </p> | ||
|
||
<p>Here are the invalid sign-ups: | ||
<ul> | ||
<% @invalid_signups.each do |signup_id| %> | ||
<li><%= collection_signup_url(@collection, signup_id) %></li> | ||
<% end %> | ||
</ul> | ||
</p> | ||
|
||
<% content_for :sent_at do %><%= Time.now.to_s(:time_for_mailers) %><% end %> | ||
<% end %> |
16 changes: 16 additions & 0 deletions
16
app/views/user_mailer/invalid_signup_notification.text.erb
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 @@ | ||
<% content_for :message do %> | ||
Dear Collection Maintainers! | ||
|
||
We have found some invalid sign-ups in your challenge "<%= @collection.title %>" (<%= collection_url(@collection) %>). Potential matches cannot be generated until these are cleaned up. | ||
|
||
Invalid sign-ups are often duplicates, or don't meet the requirements you've set for your challenge. Unfortunately, there is no automatic way to fix them, so you will have to manually edit or delete them. For more details, see the challenge-matching help file at <%= root_url %>help/challenge_matching.html#invalid_signups. | ||
|
||
Here are the invalid sign-ups: | ||
<% @invalid_signups.each do |signup_id| %> | ||
<%= collection_signup_url(@collection, signup_id) %> | ||
<% end %> | ||
|
||
AO3 (<%= root_url %>) | ||
|
||
<% content_for :sent_at do %><%= Time.now.to_s(:time_for_mailers) %><% 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