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 mensa to dashboard #173

Merged
merged 2 commits into from
Oct 8, 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
12 changes: 11 additions & 1 deletion locale/de_DE/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Mafiasi\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-03 23:48+0200\n"
"POT-Creation-Date: 2024-10-08 09:35+0200\n"
"PO-Revision-Date: 2024-09-03 23:52+0200\n"
"Last-Translator: Markus Neblung <markus.neblung@uni-hamburg.de>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -1555,6 +1555,16 @@ msgstr ""
"Matrix ermöglicht dezentrales Chatten und VoIP mit Ende-zu-Ende-"
"Verschlüsselung."

#: mafiasi/mensa/apps.py:11
msgid "Mensa"
msgstr "Mensa"

#: mafiasi/mensa/apps.py:12
msgid ""
"Look at what is available in the canteens and filter according to diet, "
"allergens, etc."
msgstr "Schaue was es in den Mensen zu essen gibt und filtere nach Ernährungsweise, Allergenen usw."

#: mafiasi/modulkompass/apps.py:11
msgid "Modulkompass"
msgstr "Modulkompass"
Expand Down
13 changes: 12 additions & 1 deletion 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-09-03 23:48+0200\n"
"POT-Creation-Date: 2024-10-08 09:35+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 @@ -1413,6 +1413,17 @@ msgstr ""
msgid "Matrix provides decentralized messaging and VoIP with E2E encryption."
msgstr ""

#: mafiasi/mensa/apps.py:11
msgid "Mensa"
msgstr "Canteen"

#: mafiasi/mensa/apps.py:12
msgid ""
"Look at what is available in the canteens and filter according to diet, "
"allergens, etc."
msgstr "Look at what is available in the canteens and filter according to diet, "
"allergens, etc."

#: mafiasi/modulkompass/apps.py:11
msgid "Modulkompass"
msgstr ""
Expand Down
12 changes: 11 additions & 1 deletion 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-09-03 23:48+0200\n"
"POT-Creation-Date: 2024-10-08 09:35+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 @@ -1642,6 +1642,16 @@ msgstr "Meowtrix"
msgid "Matrix provides decentralized messaging and VoIP with E2E encryption."
msgstr "Hug frens. Virtually."

#: mafiasi/mensa/apps.py:11
msgid "Mensa"
msgstr "Nomsies"

#: mafiasi/mensa/apps.py:12
msgid ""
"Look at what is available in the canteens and filter according to diet, "
"allergens, etc."
msgstr "Look at foood and filter what I do not likes"

#: mafiasi/modulkompass/apps.py:11
msgid "Modulkompass"
msgstr ""
Expand Down
12 changes: 11 additions & 1 deletion 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-09-03 23:48+0200\n"
"POT-Creation-Date: 2024-10-08 09:35+0200\n"
"PO-Revision-Date: 2024-09-03 23:54+0200\n"
"Last-Translator: Markus Neblung <markus.neblung@uni-hamburg.de>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -1564,6 +1564,16 @@ msgstr ""
"Matrix fournit messagerie décentralisée et VoIP avec chiffrement de bout en "
"bout."

#: mafiasi/mensa/apps.py:11
msgid "Mensa"
msgstr "Cantine"

#: mafiasi/mensa/apps.py:12
msgid ""
"Look at what is available in the canteens and filter according to diet, "
"allergens, etc."
msgstr "Regarde ce qu'il y a à manger dans les restaurants universitaires et filtre en fonction du régime alimentaire, des allergènes, etc."

#: mafiasi/modulkompass/apps.py:11
msgid "Modulkompass"
msgstr "Modulkompass"
Expand Down
18 changes: 18 additions & 0 deletions mafiasi/dashboard/static/img/services/mensa.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added mafiasi/mensa/__init__.py
Empty file.
14 changes: 14 additions & 0 deletions mafiasi/mensa/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from django.conf import settings
from django.utils.translation import gettext_lazy as _

from mafiasi.base.base_apps import BaseService


class MensaConfig(BaseService):
default = True
name = "mafiasi.mensa"
verbose_name = "Mensa"
title = _("Mensa")
description = _("Look at what is available in the canteens and filter according to diet, allergens, etc.")
link = settings.MENSA_URL
image = "img/services/mensa.svg"
2 changes: 2 additions & 0 deletions mafiasi/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
"mafiasi.etherpad",
"mafiasi.bitpoll",
"mafiasi.matrix" if env.bool("MAFIASI_ENABLE_MATRIX", True) else None,
"mafiasi.mensa" if env.bool("MAFIASI_ENABLE_MENSA", True) else None,
"mafiasi.modulkompass" if env.bool("MAFIASI_ENABLE_MODULKOMPASS", True) else None,
"mafiasi.git",
"mafiasi.sogo",
Expand Down Expand Up @@ -316,6 +317,7 @@
WHITEBOARD_URL = "https://spacedeck.mafiasi.de"
KANBOARD_URL = "https://kanboard.mafiasi.de"
MATRIX_URL = "https://matrix.mafiasi.de"
MENSA_URL = "https://mensa.mafiasi.de/app"
MODULKOMPASS_URL = "https://modulkompass.mafiasi.de"
LINK_SHORTENER_URL = "https://l.mafiasi.de"

Expand Down
Loading