diff --git a/selfserv/urls.py b/selfserv/urls.py index 8cf182e..22c08b8 100644 --- a/selfserv/urls.py +++ b/selfserv/urls.py @@ -24,5 +24,6 @@ urlpatterns = [ path('auth/', include('social_django.urls', namespace='social')), path('treasury/', include('sstreasury.urls')), path('promotions/', include('sspromotions.urls')), + path('membership/', include('ssmembership.urls')), path('', include('ssmain.urls')), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/ssmain/jinja2/ssmain/base.html b/ssmain/jinja2/ssmain/base.html index 86cd2ba..3158ea1 100644 --- a/ssmain/jinja2/ssmain/base.html +++ b/ssmain/jinja2/ssmain/base.html @@ -72,6 +72,7 @@ Society Self-Service {% if request.resolver_match.func.__module__.startswith('sstreasury.') %}Treasury{% endif %} {% if request.resolver_match.func.__module__.startswith('sspromotions.') %}Promotions{% endif %} + {% if request.resolver_match.func.__module__.startswith('ssmembership.') %}Membership{% endif %}
+ +This email address is not associated with a current membership.
+ {% else %} +Membership details
+ {% endif %} +{% endblock %} diff --git a/ssmembership/migrations/__init__.py b/ssmembership/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/ssmembership/models.py b/ssmembership/models.py new file mode 100644 index 0000000..8d79202 --- /dev/null +++ b/ssmembership/models.py @@ -0,0 +1,44 @@ +# Society Self-Service +# Copyright © 2018-2019 Yingtong Li (RunasSudo) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see