Skip to content

Commit

Permalink
add messsage against discrimination to base template
Browse files Browse the repository at this point in the history
  • Loading branch information
lilioid committed Nov 22, 2024
1 parent 83caad9 commit eebf78c
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 4 deletions.
16 changes: 15 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-11-22 11:16+0100\n"
"POT-Creation-Date: 2024-11-22 11:46+0100\n"
"PO-Revision-Date: 2024-09-03 23:52+0200\n"
"Last-Translator: Markus Neblung <[email protected]>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -92,6 +92,20 @@ msgstr "Probleme?"
msgid "This service is not run by fascists"
msgstr "Dieser Dienst wird nicht von Faschist*innen betrieben"

#: mafiasi/base/templates/base.html:131
msgid ""
"There is no place for racism, queerophobia, anti-Semitism and discrimination "
"in any form at mafiasi.de.<br> If you are affected, the <a href=\"mailto:fsr-"
"[email protected]\">student council</a> and the "
"university's <a href=\"https://www.uni-hamburg.de/antidiskriminierung.html\" "
"rel=\"external\">anti-discrimination office</a> are there for you."
msgstr ""
"Auf mafiasi.de ist kein Platz für Rassismus, Queerfeindlichkeit, Antisemitismus "
"und Menschenfeindlichkeit in jeder Form.<br> Wenn du betroffen bist, ist der "
"<a href=\"mailto:[email protected]\">FSR</a> "
"sowie die <a href=\"https://www.uni-hamburg.de/antidiskriminierung.html\" rel=\"external\">"
"Antidiskriminierungsstelle der Uni</a> für dich da."

#: mafiasi/base/templates/base/licenses.html:4
msgid "License information"
msgstr "Lizenzinformationen"
Expand Down
11 changes: 10 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-11-22 11:16+0100\n"
"POT-Creation-Date: 2024-11-22 11:46+0100\n"
"PO-Revision-Date: 2024-01-18 22:42+0100\n"
"Last-Translator: Markus Neblung <[email protected]>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -84,6 +84,15 @@ msgstr ""
msgid "This service is not run by fascists"
msgstr ""

#: mafiasi/base/templates/base.html:131
msgid ""
"There is no place for racism, queerophobia, anti-Semitism and discrimination "
"in any form at mafiasi.de.<br> If you are affected, the <a href=\"mailto:fsr-"
"[email protected]\">student council</a> and the "
"university's <a href=\"https://www.uni-hamburg.de/antidiskriminierung.html\" "
"rel=\"external\">anti-discrimination office</a> are there for you."
msgstr ""

#: mafiasi/base/templates/base/licenses.html:4
msgid "License information"
msgstr ""
Expand Down
11 changes: 10 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-11-22 11:16+0100\n"
"POT-Creation-Date: 2024-11-22 11:46+0100\n"
"PO-Revision-Date: 2024-01-09 22:14+0000\n"
"Last-Translator: kritzl <[email protected]>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -95,6 +95,15 @@ msgstr "Problems?"
msgid "This service is not run by fascists"
msgstr "This sevwis is not run by fascists! Nu-uh!"

#: mafiasi/base/templates/base.html:131
msgid ""
"There is no place for racism, queerophobia, anti-Semitism and discrimination "
"in any form at mafiasi.de.<br> If you are affected, the <a href=\"mailto:fsr-"
"[email protected]\">student council</a> and the "
"university's <a href=\"https://www.uni-hamburg.de/antidiskriminierung.html\" "
"rel=\"external\">anti-discrimination office</a> are there for you."
msgstr ""

#: mafiasi/base/templates/base/licenses.html:4
msgid "License information"
msgstr "License information"
Expand Down
11 changes: 10 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-11-22 11:16+0100\n"
"POT-Creation-Date: 2024-11-22 11:46+0100\n"
"PO-Revision-Date: 2024-09-03 23:54+0200\n"
"Last-Translator: Markus Neblung <[email protected]>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -92,6 +92,15 @@ msgstr "Problèmes?"
msgid "This service is not run by fascists"
msgstr ""

#: mafiasi/base/templates/base.html:131
msgid ""
"There is no place for racism, queerophobia, anti-Semitism and discrimination "
"in any form at mafiasi.de.<br> If you are affected, the <a href=\"mailto:fsr-"
"[email protected]\">student council</a> and the "
"university's <a href=\"https://www.uni-hamburg.de/antidiskriminierung.html\" "
"rel=\"external\">anti-discrimination office</a> are there for you."
msgstr ""

#: mafiasi/base/templates/base/licenses.html:4
msgid "License information"
msgstr "Informations sur la licence"
Expand Down
20 changes: 20 additions & 0 deletions mafiasi/base/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,26 @@ body {
border-radius: 10px;
}

#politics-toast {
position: fixed;
bottom: 1vw;
left: auto;
right: 1vw;
margin: 0;
max-width: 512px;
cursor: pointer;
user-select: none;

border: none;
padding: 10px 16px;
background: #23527c;
color: white;
border-radius: 4px;
}
#politics-toast a {
color: var(--mafiasi-dark-btn-primary);
}

/* ------- MISC -------*/
.clickable {
cursor: pointer;
Expand Down
10 changes: 10 additions & 0 deletions mafiasi/base/static/js/politics_toast.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
document.addEventListener("DOMContentLoaded", () => {
const toast = document.getElementById("politics-toast");

// close dialog when clicked
const close = () => toast.style.display = "none";
toast.addEventListener("click", close);

// alternatively, also close dialog after 20 seconds
setTimeout(close, 20 * 1000);
})
10 changes: 10 additions & 0 deletions mafiasi/base/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ <h2>{% block ptitle %}{% endblock %}</h2>
</div>
</div>

<aside id="politics-toast">
<span>
{% blocktranslate trimmed %}
There is no place for racism, queerophobia, anti-Semitism and discrimination in any form at mafiasi.de.<br>
If you are affected, the <a href="mailto:[email protected]">student council</a> and the university's <a href="https://www.uni-hamburg.de/antidiskriminierung.html" rel="external">anti-discrimination office</a> are there for you.
{% endblocktranslate %}
</span>
</aside>

{% if request.session.specialFeature == 'winter' %}
<canvas id="snow-canvas"></canvas>
<script src="{% static 'js/snow.js' %}" type="module"></script>
Expand All @@ -136,6 +145,7 @@ <h2>{% block ptitle %}{% endblock %}</h2>
<script src="{% static 'js/common.js' %}" type="text/javascript"></script>
<script src="{% static 'js/bootstrap.js' %}" type="text/javascript"></script>
<script src="{% static 'js/misc.js' %}" type="text/javascript"></script>
<script src="{% static 'js/politics_toast.mjs' %}" type="module"></script>
{% block js %}
{% endblock js %}
</body>
Expand Down

0 comments on commit eebf78c

Please sign in to comment.