...
 
Commits (12)
argparse==1.2.1
amqp==2.1.4
beautifulsoup4==4.3.2
billiard==3.5.0.2
celery==4.0.2
Django>1.11, <1.12
django-allauth==0.30.0
django-analytical==2.0.0
......@@ -19,6 +22,7 @@ django-redis-cache==1.6.4
djangorestframework==3.3.2
flake8==2.5.0
gunicorn==19.6.0
kombu==4.0.2
Markdown==2.6.5
mccabe==0.3.1
MySQL-python==1.2.5
......@@ -27,10 +31,11 @@ pep8==1.6.2
pyflakes==1.0.0
python-openid==2.2.5
pytz==2017.2
redis==2.10.3
redis==2.10.5
requests==2.5.1
requests-oauthlib==0.4.2
six==1.8.0
vine==1.1.3
wsgiref==0.1.2
wheel==0.26.0
Whoosh==2.7.0
Dear George,
Welcome back to a new school year here at George Mason University. We hope you're
as excited about this upcoming year as we are.
Most students move their housing location between years; please set your
information on your profile at roomlist.gmu.edu/settings so we can show you who
lives around you.
If you've moved off campus, you can still use our service to find other students
by major. If you've already graduated, you can delete your account here.
Cheers,
The Roomlist Team
P.S.
To stop receiving these emails, click this link, or sign in to your settings page
at roomlist.gmu.edu/settings.
Dear George,
Since you last signed in a couple days ago, four more students have indicated they
share your floor.
Have you met any of these students?
Thomas Jefferson, Physics, Class of 2020
James Madison, Government and International Politics, Class of 2019
Cheers,
The Roomlist Team
P.S.
To stop receiving these emails, click this link, or sign in to your settings page
at roomlist.gmu.edu/settings.
Dear George,
Since you last signed in a couple weeks ago, twelve students that share your major
have joined your floor.
Do you know any of these students?
James Madison, Class of 2020
George Washington, Class of 2021
Cheers,
The Roomlist Team
P.S.
To stop receiving these emails, click this link, or sign in to your settings page
at roomlist.gmu.edu/settings.
Dear George,
Welcome back to a new spring semester here at George Mason University.
Things can change over the course of a school year. We haven't seen you for a couple
weeks, and we thought we'd check in with you to see if there's anything new under
the sun.
There are 24 other students on your floor and 38 other students in your major who've
signed in this past semester.
If you've moved your housing location, or if you've changed your major, you can update
your profile at roomlist.gmu.edu/settings.
You're always welcome to offer your thoughts at roomlist@lists.srct.gmu.edu, or join
us at one of our weekly meetings.
Cheers,
The Roomlist Team
P.S.
To stop receiving these emails, click this link, or sign in to your settings page
at roomlist.gmu.edu/settings.
Dear George,
We noticed you didn't quite finish completing your profile on Roomlist.
Add your major, and you'll be able to find other students who in your
major who live on campus near you.
Cheers,
The Roomlist Team
P.S.
To stop receiving these emails, click this link, or sign in to your settings page
at roomlist.gmu.edu/settings.
<html>
<head>
<title>You successfully deleted your account on Roomlist</title>
<style type="text/css">
body { font-family: "Verdana", sans-serif; }
a { color:#006633; }
a:active { color:#FFCC33; }
a:visited { color: #004C25; }
</style>
</head>
<body>
<p>Dear {{ student_name }},</p>
<br />
<p>We have removed your account from Roomlist.</p>
<p>{{ special_message }}</p>
<p>:-)</p>
<br />
<p>---</p>
<p>Mason SRCT</p>
<p>
<small><a href="https://srct.gmu.edu/">SRCT</a> is a
<a href="https://getconnected.gmu.edu/organization/srct">
registered student organization</a> at
<a href="https://www2.gmu.edu/">George Mason University</a>. We have written and
provide this project for the benefit of our school's community, but offer no
claims to the accuracy of the information provided on our site by other student
users. We are not affiliated with Mason Housing. The source code for this project
is available and
<a href="https://www.gnu.org/licenses/gpl-3.0.html/">freely licensed</a> at
<a href="https://git.gmu.edu/srct/roomlist/">git.gmu.edu/srct/roomlist</a>.</small>
</p>
</body>
</html>
{% extends 'layouts/email_base.html' %}
{% block greeting %}
Dear {{ student_name }},
{% endblock greeting %}
{% block content %}
<p>We have removed your account from Roomlist.</p>
<p>{{ special_message }}</p>
{% endblock content %}
Dear {{ student_name }},
{% extends 'layouts/email_base.txt' %}
{% block greeting %}
Dear {{ student_name }},
{% endblock greeting %}
{% block content %}
We have removed your account from Roomlist.
{{ special_message }}
:-)
---
Mason SRCT
SRCT is a registered student organization at George Mason University. We have
written and provide this project for the benefit of our school's community, but
offer no claims to the accuracy of the information provided on our site by other
student users. We are not affiliated with Mason Housing. The source code for this
project is available and freely licensed at git.gmu.edu/srct/roomlist.
{% endblock content %}
Dear {{ student_name }},
A number of other students who say they live on your same floor aren't sure if you're
in the right place.
When you get the chance, can you sign in and verify your housing location on
roomlist.gmu.edu/settings? We want to make sure everyone's privacy is respected.
Thank you,
--
The Roomlist Team
Student-Run Computing and Tech is a registered student organization at George Mason
University. We have written and provide this project for the benefit of our school's
community, but offer no claims as to the accuracy of the information provided on our
site by other student users. We are not affiliated with Mason Housing. The source code
for this project is available and freely licensed at git.gmu.edu/srct/roomlist. Join
us at one of our weekly meetings or on srct.slack.com/signup to get started contributing.
Dear {[ student_name }},
Well, school year's winding to a close. We hope that you've had a intellectually
stimulating and personally fulfilling experience over this past spring and fall here
at Mason.
We're going to clear out everyone's room at the end of the semester, and just
wanted to give you a heads up.
If you know that you'll be graduating or transferring, you can delete your
account at roomlist.gmu.edu/accounts/student/gmason/delete.
Thank you, and good luck on your final exams,
--
The Roomlist Team
Student-Run Computing and Tech is a registered student organization at George Mason
University. We have written and provide this project for the benefit of our school's
community, but offer no claims as to the accuracy of the information provided on our
site by other student users. We are not affiliated with Mason Housing. The source code
for this project is available and freely licensed at git.gmu.edu/srct/roomlist. Join
us at one of our weekly meetings or on srct.slack.com/signup to get started contributing.
......@@ -308,23 +308,25 @@ class DeleteStudent(LoginRequiredMixin, StudentContextMixin, FormView):
text_path = 'email/farewell.txt'
html_path = 'email/farewell.html'
subject = "You successfully deleted your account on Roomlist"
context = {
'subject': subject,
'student_name': student.get_first_name_or_uname,
'signature': ':-)',
}
if form.cleaned_data['leaving']:
context = {
'student_name': student.get_first_name_or_uname,
'special_message': "We're glad you gave our service a try."
}
context['special_message'] = "We're glad you gave our service a try."
else:
context = {
'student_name': student.get_first_name_or_uname,
'special_message': "We wish you luck in your time after Mason!"
}
context['special_message'] = "We wish you luck in your time after Mason!"
subject = "You successfully deleted your account on Roomlist"
to = user.email
student_email = create_email(text_path, html_path, subject, to, context)
# send feedback to the admins if there is feedback to send
# this email to admin does not use the templates used when sending to users
if form.cleaned_data['feedback']:
text_path = 'email/feedback.txt'
html_path = 'email/feedback.html'
......
<html>
<head>
<title>{{ subject }}</title>
<style type="text/css">
body { font-family: "Verdana", sans-serif; }
a { color:#006633; }
a:active { color:#FFCC33; }
a:visited { color: #004C25; }
</style>
</head>
<body>
<p>{% block greeting %} {% endblock %}</p>
<br />
{% block content %}
{% endblock %}
<p>{{ signature }}</p>
<br />
<p>---</p>
<p>Mason SRCT</p>
<p><small>
<a href="https://srct.gmu.edu/">Student-Run Computing and Tech</a> is a
<a href="https://getconnected.gmu.edu/organization/srct">
registered student organization</a> at
<a href="https://www2.gmu.edu/">George Mason University</a>. We have written and
provide this project for the benefit of our school's community, but offer no
claims to the accuracy of the information provided on our site by other student
users. We are not affiliated with
<a href="https://housing.gmu.edu/about">Mason Housing</a>. The source code
for this project is available and
<a href="https://www.gnu.org/licenses/gpl-3.0.html/">freely licensed</a> at
<a href="https://git.gmu.edu/srct/roomlist/">git.gmu.edu/srct/roomlist</a>.
Join us during the school year at one of our
<a href="https://srct.gmu.edu/calendar/">weekly meetings</a> or any time on
<a href="https://srct.slack.com/signup">Slack</a> to get started contributing.
</small></p>
</body>
</html>
{% block greeting %} {% endblock %}
{% block content %} {% endblock %}
{{ signature }}
---
Mason SRCT
Student-Run Computing and Tech is a registered student organization at George Mason
University. We have written and provide this project for the benefit of our school's
community, but offer no claims as to the accuracy of the information provided on our
site by other student users. We are not affiliated with Mason Housing. The source code
for this project is available and freely licensed at git.gmu.edu/srct/roomlist. Join
us during the school year at one of our weekly meetings or any time on
srct.slack.com/signup to get started contributing.
<html>
<head>
<title>Welcome to Roomlist, {{ student_name }}</title>
<style type="text/css">
body { font-family: "Verdana", sans-serif; }
a { color:#006633; }
a:active { color:#FFCC33; }
a:visited { color: #004C25; }
</style>
</head>
<body>
<p>Dear {{ student_name }},</p>
<br />
<p>Thank you for signing up for
<a href="https://roomlist.gmu.edu/">Roomlist</a>, and welcome!</p>
<p>We hope you'll find this service beneficial to your time here at Mason.</p>
<p>If you have any questions, don't hesitate to send us an email to
<a href="mailto:roomlist@srct.gmu.edu">roomlist@srct.gmu.edu</a>
or stop by one of our student org's
<a href="https://srct.gmu.edu/calendar/">weekly meetings</a>.
We would love to hear your feedback.</p>
<p>Have a <strong>great</strong> {{ semester }} semester!</p>
<p>:-)</p>
<br />
<p>---</p>
<p>Mason SRCT</p>
<p>
<small><a href="https://srct.gmu.edu/">SRCT</a> is a
<a href="https://getconnected.gmu.edu/organization/srct">
registered student organization</a> at
<a href="https://www2.gmu.edu/">George Mason University</a>. We have written and
provide this project for the benefit of our school's community, but offer no
claims to the accuracy of the information provided on our site by other student
users. We are not affiliated with Mason Housing. The source code for this project
is available and
<a href="https://www.gnu.org/licenses/gpl-3.0.html/">freely licensed</a> at
<a href="https://git.gmu.edu/srct/roomlist/">git.gmu.edu/srct/roomlist</a>.</small>
</p>
</body>
</html>
{% extends 'layouts/email_base.html' %}
{% block greeting %}
Dear {{ student_name }},
{% endblock greeting %}
{% block content %}
<p>Thank you for signing up for
<a href="https://roomlist.gmu.edu/">Roomlist</a>, and welcome!</p>
<p>We hope you'll find this service beneficial to your time here at Mason.</p>
<p>If you have any questions, don't hesitate to send us an email to
<a href="mailto:roomlist@srct.gmu.edu">roomlist@srct.gmu.edu</a>
or stop by one of our student org's
<a href="https://srct.gmu.edu/calendar/">weekly meetings</a>.
We would love to hear your feedback.</p>
<p>Have a <strong>great</strong> {{ semester }} semester!</p>
{% endblock content %}
Dear {{ student_name }},
{% extends 'layouts/email_base.txt' %}
{% block greeting %}
Dear {{ student_name }},
{% endblock greeting %}
{% block content %}
Thank you for signing up for Roomlist, and welcome!
We hope you'll find this service beneficial to your time here at Mason.
......@@ -10,16 +14,4 @@ roomlist@srct.gmu.edu, or stop by one of our student org's weekly meetings.
We would love to hear your feedback.
Have a great {{ semester }} semester!
:-)
---
Mason SRCT
SRCT is a registered student organization at George Mason University. We have
written and provide this project for the benefit of our school's community, but
offer no claims to the accuracy of the information provided on our site by other
student users. We are not affiliated with Mason Housing. The source code for this
project is available and freely licensed at git.gmu.edu/srct/roomlist.
{% endblock content %}
......@@ -254,12 +254,15 @@ class WelcomeSocial(LoginRequiredMixin, StudentContextMixin, FormView):
today = date.today()
semester = "%s %s" % (get_semester(today), today.strftime('%Y'))
subject = "Welcome to Roomlist, %s" % me.get_first_name_or_uname()
context = {
'subject': subject,
'student_name': me.get_first_name_or_uname,
'semester': semester
'semester': semester,
'signature': ':-)',
}
subject = "Welcome to Roomlist, %s" % me.get_first_name_or_uname()
to = me.user.email
welcome_email = create_email(text_path, html_path, subject, to, context)
......