Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add may day special feature #163

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions locale/de_DE/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ msgid ""
msgstr ""
"Project-Id-Version: Mafiasi\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-01 02:46+0200\n"
"PO-Revision-Date: 2024-01-18 22:42+0100\n"
"POT-Creation-Date: 2024-05-01 00:25+0200\n"
"PO-Revision-Date: 2024-05-01 00:26+0200\n"
"Last-Translator: Markus Neblung <markus.neblung@uni-hamburg.de>\n"
"Language-Team: \n"
"Language: de_DE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.0.1\n"
"X-Generator: Poedit 3.4.2\n"

#: mafiasi/base/middleware.py:18
msgid ""
Expand Down Expand Up @@ -169,23 +169,23 @@ msgstr "Mit dem BitPoll kannst du einfach gemeinsame Termine finden."
msgid "Dashboard"
msgstr "Dashboard"

#: mafiasi/dashboard/templates/dashboard/index.html:16
#: mafiasi/dashboard/templates/dashboard/index.html:18
msgid "Services"
msgstr "Dienste"

#: mafiasi/dashboard/templates/dashboard/index.html:33
#: mafiasi/dashboard/templates/dashboard/index.html:35
msgid "Rearrange item"
msgstr "Dienst umordnen"

#: mafiasi/dashboard/templates/dashboard/index.html:41
#: mafiasi/dashboard/templates/dashboard/index.html:43
msgid "News and more"
msgstr "Aktuelles und mehr"

#: mafiasi/dashboard/templates/dashboard/index.html:57
#: mafiasi/dashboard/templates/dashboard/index.html:59
msgid "Wiki search"
msgstr "Wiki-Suche"

#: mafiasi/dashboard/templates/dashboard/index.html:64
#: mafiasi/dashboard/templates/dashboard/index.html:66
#: mafiasi/gprot/templates/gprot/menu.html:4
#: mafiasi/pks/templates/pks/menu.html:4
#: mafiasi/pks/templates/pks/search.html:5
Expand Down Expand Up @@ -218,6 +218,10 @@ msgstr "Weiter mit Werbung"
msgid "Book Mafiasi Purple"
msgstr "Mafiasi Purple buchen"

#: mafiasi/dashboard/templates/dashboard/may_day.html:10
msgid "Server-Rooms are being occupied…"
msgstr "Serverräume werden besetzt…"

#: mafiasi/discourse/apps.py:11
msgid "Discourse"
msgstr "Discourse"
Expand Down
16 changes: 10 additions & 6 deletions locale/en_US/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Mafiasi\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-01 02:46+0200\n"
"POT-Creation-Date: 2024-05-01 00:25+0200\n"
"PO-Revision-Date: 2024-01-18 22:42+0100\n"
"Last-Translator: Markus Neblung <markus.neblung@uni-hamburg.de>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -155,23 +155,23 @@ msgstr ""
msgid "Dashboard"
msgstr ""

#: mafiasi/dashboard/templates/dashboard/index.html:16
#: mafiasi/dashboard/templates/dashboard/index.html:18
msgid "Services"
msgstr ""

#: mafiasi/dashboard/templates/dashboard/index.html:33
#: mafiasi/dashboard/templates/dashboard/index.html:35
msgid "Rearrange item"
msgstr ""

#: mafiasi/dashboard/templates/dashboard/index.html:41
#: mafiasi/dashboard/templates/dashboard/index.html:43
msgid "News and more"
msgstr ""

#: mafiasi/dashboard/templates/dashboard/index.html:57
#: mafiasi/dashboard/templates/dashboard/index.html:59
msgid "Wiki search"
msgstr ""

#: mafiasi/dashboard/templates/dashboard/index.html:64
#: mafiasi/dashboard/templates/dashboard/index.html:66
#: mafiasi/gprot/templates/gprot/menu.html:4
#: mafiasi/pks/templates/pks/menu.html:4
#: mafiasi/pks/templates/pks/search.html:5
Expand Down Expand Up @@ -199,6 +199,10 @@ msgstr ""
msgid "Book Mafiasi Purple"
msgstr ""

#: mafiasi/dashboard/templates/dashboard/may_day.html:10
msgid "Server-Rooms are being occupied…"
msgstr ""

#: mafiasi/discourse/apps.py:11
msgid "Discourse"
msgstr ""
Expand Down
16 changes: 10 additions & 6 deletions locale/en_Uwu/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Mafiasi\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-01 02:46+0200\n"
"POT-Creation-Date: 2024-05-01 00:25+0200\n"
"PO-Revision-Date: 2024-01-09 22:14+0000\n"
"Last-Translator: kritzl <kritzl@kritzl.dev>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -169,23 +169,23 @@ msgstr "Pawl is helps u find dates with frens :*"
msgid "Dashboard"
msgstr "Homi UwU"

#: mafiasi/dashboard/templates/dashboard/index.html:16
#: mafiasi/dashboard/templates/dashboard/index.html:18
msgid "Services"
msgstr "Behold: my stuff! (●'◡'●)"

#: mafiasi/dashboard/templates/dashboard/index.html:33
#: mafiasi/dashboard/templates/dashboard/index.html:35
msgid "Rearrange item"
msgstr "Move thingy"

#: mafiasi/dashboard/templates/dashboard/index.html:41
#: mafiasi/dashboard/templates/dashboard/index.html:43
msgid "News and more"
msgstr "Meows and snacks"

#: mafiasi/dashboard/templates/dashboard/index.html:57
#: mafiasi/dashboard/templates/dashboard/index.html:59
msgid "Wiki search"
msgstr "Look up knowings"

#: mafiasi/dashboard/templates/dashboard/index.html:64
#: mafiasi/dashboard/templates/dashboard/index.html:66
#: mafiasi/gprot/templates/gprot/menu.html:4
#: mafiasi/pks/templates/pks/menu.html:4
#: mafiasi/pks/templates/pks/search.html:5
Expand Down Expand Up @@ -215,6 +215,10 @@ msgstr "Continue"
msgid "Book Mafiasi Purple"
msgstr ""

#: mafiasi/dashboard/templates/dashboard/may_day.html:10
msgid "Server-Rooms are being occupied…"
msgstr ""

#: mafiasi/discourse/apps.py:11
msgid "Discourse"
msgstr "Talks with frens 1"
Expand Down
16 changes: 10 additions & 6 deletions locale/fr_FR/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Mafiasi\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-01 02:46+0200\n"
"POT-Creation-Date: 2024-05-01 00:25+0200\n"
"PO-Revision-Date: 2024-01-18 22:41+0100\n"
"Last-Translator: Markus Neblung <markus.neblung@uni-hamburg.de>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -175,23 +175,23 @@ msgstr ""
msgid "Dashboard"
msgstr "Dashboard"

#: mafiasi/dashboard/templates/dashboard/index.html:16
#: mafiasi/dashboard/templates/dashboard/index.html:18
msgid "Services"
msgstr "Services"

#: mafiasi/dashboard/templates/dashboard/index.html:33
#: mafiasi/dashboard/templates/dashboard/index.html:35
msgid "Rearrange item"
msgstr "Réorganiser"

#: mafiasi/dashboard/templates/dashboard/index.html:41
#: mafiasi/dashboard/templates/dashboard/index.html:43
msgid "News and more"
msgstr "Les nouvelles et plus"

#: mafiasi/dashboard/templates/dashboard/index.html:57
#: mafiasi/dashboard/templates/dashboard/index.html:59
msgid "Wiki search"
msgstr "Recherche Wiki"

#: mafiasi/dashboard/templates/dashboard/index.html:64
#: mafiasi/dashboard/templates/dashboard/index.html:66
#: mafiasi/gprot/templates/gprot/menu.html:4
#: mafiasi/pks/templates/pks/menu.html:4
#: mafiasi/pks/templates/pks/search.html:5
Expand Down Expand Up @@ -225,6 +225,10 @@ msgstr "Continuer avec les annonces"
msgid "Book Mafiasi Purple"
msgstr "Livre Mafiasi Purple"

#: mafiasi/dashboard/templates/dashboard/may_day.html:10
msgid "Server-Rooms are being occupied…"
msgstr ""

#: mafiasi/discourse/apps.py:11
msgid "Discourse"
msgstr "Discourse"
Expand Down
3 changes: 3 additions & 0 deletions mafiasi/base/special_day_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def __call__(self, request):
# winter season
if n.month == 12 and n.day >= 10:
feature = "winter"
# may day (tag der arbeit)
if n.month == 5 and n.day == 1:
feature = "mayDay"

# make sure session hold the current feature
request.session["specialFeature"] = feature
Expand Down
2 changes: 2 additions & 0 deletions mafiasi/dashboard/templates/dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
{% block content %}
{% if request.session.specialFeature == 'mafiasiPurple' %}
{% include "dashboard/mafiasi_purple.html" %}
{% elif request.session.specialFeature == 'mayDay' %}
{% include "dashboard/may_day.html" %}
{% endif %}
<div class="row {{ request.session.specialFeatureClasses }}">
<div id="dashboard" class="col-md-8">
Expand Down
71 changes: 71 additions & 0 deletions mafiasi/dashboard/templates/dashboard/may_day.html

Large diffs are not rendered by default.

Loading