-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge dashboard-email views into one place
This is a giant refactoring I've been wanting to do for a while, to keep the various email reminders from needing to be defined in multiple places. I'm pretty sure I fixed some bugs along the way, but I wasn't disciplined about making small commits, so I'm not real sure what they were...
- Loading branch information
1 parent
66c2f13
commit c9fa417
Showing
28 changed files
with
416 additions
and
341 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
<p>Once mentors have had a couple days to mark their project as closed, late, or needs promotion, | ||
you can send an email to the announcements mailing list to remind applicants of the upcoming deadlines:</p> | ||
|
||
<p><a href="{% url 'email-deadline-reminder' round_slug=current_round.slug %}" class="btn btn-success">Applicant Deadline Email</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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
<p>Two weeks before the application deadline, project mentors are either overloaded with applicants, | ||
or don't have enough applicants. Send a reminder email to either close their project to new applicants, | ||
or extend their project deadline by a week (and/or mark their project as needing more applicants).</p> | ||
|
||
<p><a href="{% url 'email-deadline-review' round_slug=current_round.slug %}" class="btn btn-success">Mentor Deadlines Email</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
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
7 changes: 0 additions & 7 deletions
7
home/templates/home/dashboard/email/mentor-application-deadline-reminder-early.html
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
home/templates/home/dashboard/email/mentor-application-deadline-reminder-final.html
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
home/templates/home/dashboard/email/mentor-application-deadline-reminder.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 @@ | ||
<p>You'll need to send a reminder email to mentors who have an approved project to let them know about the application deadline, and to give them instructions on how to help applicants complete the timeline.</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
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 |
---|---|---|
@@ -1,31 +1,16 @@ | ||
<h1>Email Reminders</h1> | ||
|
||
{% for event in section.events %} | ||
{% with until=event.due|add:event.duration %} | ||
<h4>{{ event.due }} | ||
{% if event.duration %} | ||
until {{ until }} | ||
{% endif %} | ||
- | ||
<h4>{{ event.due }} - | ||
{% if section.today == event.due %} | ||
today! | ||
{% elif section.today > event.due %} | ||
passed: {{ event.due|timesince:section.today }} ago | ||
{% else %} | ||
{{ event.due|timeuntil:section.today }} from now | ||
{% endif %} | ||
{% if event.duration %} | ||
until | ||
{% if section.today == until %} | ||
today! | ||
{% elif section.today > until %} | ||
passed: {{ until|timesince:section.today }} ago | ||
{% else %} | ||
{{ until|timeuntil:section.today }} from now | ||
{% endif %} | ||
{% endif %} | ||
</h4> | ||
{% include event.template with current_round=event.current_round due=event.due only %} | ||
{% include event.kind.dashboard_snippet with current_round=event.current_round due=event.due only %} | ||
<p><a href="{% url event.kind.url_name round_slug=event.current_round.slug %}" class="btn btn-success">{{ event.kind.description }}</a></p> | ||
{% if not forloop.last %}<hr>{% endif %} | ||
{% endwith %} | ||
{% endfor %} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.