diff --git a/dtekportal/homepage/templates/homepage/documents.html b/dtekportal/homepage/templates/homepage/documents.html new file mode 100644 index 0000000..52c6b83 --- /dev/null +++ b/dtekportal/homepage/templates/homepage/documents.html @@ -0,0 +1,22 @@ +{% extends "base.html" %} +{% load i18n %} +{% block content %} +
+
+

{% trans "StyrdokumentPage" %}

+ {% trans "stadga" %}
+ {% trans "reglemente" %}
+ {% trans "ekonomisktreglemente" %}
+ {% trans "policies" %}
+ {% trans "incidenthantering" %}
+ {% trans "date-it" %} + +
+
+

{% trans "saknas" %}

+ {% trans "stadgehemsidan" %} {% trans "stadgetext" %}
+ {% trans "wikin" %} {% trans "wikitext" %} +
+
+ +{% endblock content %} diff --git a/dtekportal/homepage/urls.py b/dtekportal/homepage/urls.py index 0783c03..31b2653 100644 --- a/dtekportal/homepage/urls.py +++ b/dtekportal/homepage/urls.py @@ -10,6 +10,7 @@ urlpatterns = [ path("", TemplateView.as_view(template_name='homepage/index/index.html'), name='index'), path("newsletter", TemplateView.as_view(template_name='homepage/newsletter.html'), name='newsletter'), + path("documents", TemplateView.as_view(template_name='homepage/documents.html'), name='documents'), path('studiesocial-hjalp', RedirectView.as_view(url=static('homepage/studiesociala-natverket.pdf')), name='studiesocial-hjalp'), ] diff --git a/dtekportal/templates/header/header-menu-box.html b/dtekportal/templates/header/header-menu-box.html index ad42c79..18b560b 100644 --- a/dtekportal/templates/header/header-menu-box.html +++ b/dtekportal/templates/header/header-menu-box.html @@ -65,9 +65,7 @@ {% macro_arg %} {% trans "Styrdokument" %} {% endmacro_arg %} - {% macro_arg %} - https://dtek.se/styrdokument - {% endmacro_arg %} + {% macro_arg %} {% url 'homepage:documents' %} {% endmacro_arg %} {% macro_arg %} {% trans "Styrdokument" %} {% endmacro_arg %} diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po index 26684f9..e0715c9 100644 --- a/locale/en/LC_MESSAGES/django.po +++ b/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-09-04 21:23+0200\n" +"POT-Creation-Date: 2024-10-31 16:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,6 +18,54 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: homepage/templates/homepage/documents.html:6 +msgid "StyrdokumentPage" +msgstr "Documents and regulations" + +#: homepage/templates/homepage/documents.html:7 +msgid "stadga" +msgstr "Bylaws" + +#: homepage/templates/homepage/documents.html:8 +msgid "reglemente" +msgstr "Regulations" + +#: homepage/templates/homepage/documents.html:9 +msgid "ekonomisktreglemente" +msgstr "Economic regulations" + +#: homepage/templates/homepage/documents.html:10 +msgid "policies" +msgstr "Policies" + +#: homepage/templates/homepage/documents.html:11 +msgid "incidenthantering" +msgstr "Incident policy" + +#: homepage/templates/homepage/documents.html:12 +msgid "date-it" +msgstr "DatE-IT regulation" + +#: homepage/templates/homepage/documents.html:16 +msgid "saknas" +msgstr "Something missing?" + +#: homepage/templates/homepage/documents.html:17 +msgid "stadgehemsidan" +msgstr "Webpage" + +#: homepage/templates/homepage/documents.html:17 +msgid "stadgetext" +msgstr "with all documents" + +#: homepage/templates/homepage/documents.html:18 +msgid "wikin" +msgstr "The wiki" + +#: homepage/templates/homepage/documents.html:18 +msgid "wikitext" +msgstr "also has a list over documents" + #: homepage/templates/homepage/index/cal-box.html:5 msgid "Arrangemangskalender" msgstr "Event calendar" @@ -244,56 +292,56 @@ msgid "DTEK-wikin, där allt kul händer!" msgstr "The DTEK-wiki, where all the fun is!" #: templates/header/header-menu-box.html:66 -#: templates/header/header-menu-box.html:72 +#: templates/header/header-menu-box.html:70 msgid "Styrdokument" -msgstr "" +msgstr "Documents" -#: templates/header/header-menu-box.html:82 +#: templates/header/header-menu-box.html:80 msgid "Databussen" msgstr "Databussen" -#: templates/header/header-menu-box.html:88 +#: templates/header/header-menu-box.html:86 msgid "Mer info om Databussen" msgstr "" "More info about the D-division's car "Databussen" (The Data Bus)" -#: templates/header/header-menu-box.html:98 +#: templates/header/header-menu-box.html:96 msgid "Schema" msgstr "Schedule" -#: templates/header/header-menu-box.html:104 +#: templates/header/header-menu-box.html:102 msgid "TimeEdit" msgstr "TimeEdit" -#: templates/header/header-menu-box.html:114 +#: templates/header/header-menu-box.html:112 msgid "Grupprum" msgstr "Group Rooms" -#: templates/header/header-menu-box.html:120 +#: templates/header/header-menu-box.html:118 msgid "Boka grupprum på Chalmers" msgstr "Book group rooms at Chalmers" -#: templates/header/header-menu-box.html:130 +#: templates/header/header-menu-box.html:128 msgid "Kårkort" msgstr "Student Union Card" -#: templates/header/header-menu-box.html:136 +#: templates/header/header-menu-box.html:134 msgid "Genväg för att ladda ditt kårkort" msgstr "Shortcut to charge your student union card" -#: templates/header/header-menu-box.html:146 +#: templates/header/header-menu-box.html:144 msgid "Karta" msgstr "Map" -#: templates/header/header-menu-box.html:152 +#: templates/header/header-menu-box.html:150 msgid "Karta över Campus" msgstr "Map of campus" -#: templates/header/header-menu-box.html:162 +#: templates/header/header-menu-box.html:160 msgid "Veckobrev" msgstr "Newsletter" -#: templates/header/header-menu-box.html:166 +#: templates/header/header-menu-box.html:164 msgid "" "Anmäl dig till datas veckobrev, med alla arrangemang och annat som händer på " "sektionen" @@ -301,11 +349,11 @@ msgstr "" "Register to receive the D-division's newsletter to get updates about what's " "going on at the division" -#: templates/header/header-menu-box.html:174 +#: templates/header/header-menu-box.html:172 msgid "Studiesocial hjälp" msgstr "Support" -#: templates/header/header-menu-box.html:178 +#: templates/header/header-menu-box.html:176 msgid "" "Om du känner att studierna går tufft,\n" " du känner dig nere, känner dig kränkt eller " diff --git a/locale/sv/LC_MESSAGES/django.po b/locale/sv/LC_MESSAGES/django.po index 5d6181d..95a7877 100644 --- a/locale/sv/LC_MESSAGES/django.po +++ b/locale/sv/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-09-04 21:23+0200\n" +"POT-Creation-Date: 2024-10-31 16:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,6 +18,54 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: homepage/templates/homepage/documents.html:6 +msgid "StyrdokumentPage" +msgstr "Styrdokument" + +#: homepage/templates/homepage/documents.html:7 +msgid "stadga" +msgstr "Stadga" + +#: homepage/templates/homepage/documents.html:8 +msgid "reglemente" +msgstr "Reglemente" + +#: homepage/templates/homepage/documents.html:9 +msgid "ekonomisktreglemente" +msgstr "Ekonomiskt reglemente" + +#: homepage/templates/homepage/documents.html:10 +msgid "policies" +msgstr "Policys" + +#: homepage/templates/homepage/documents.html:11 +msgid "incidenthantering" +msgstr "Incidenthanterings policy" + +#: homepage/templates/homepage/documents.html:12 +msgid "date-it" +msgstr "DatE-IT reglemente" + +#: homepage/templates/homepage/documents.html:16 +msgid "saknas" +msgstr "Saknas något?" + +#: homepage/templates/homepage/documents.html:17 +msgid "stadgehemsidan" +msgstr "Hemsida" + +#: homepage/templates/homepage/documents.html:17 +msgid "stadgetext" +msgstr "med alla styrdokuments filer" + +#: homepage/templates/homepage/documents.html:18 +msgid "wikin" +msgstr "Wikin" + +#: homepage/templates/homepage/documents.html:18 +msgid "wikitext" +msgstr "har även en lista över dokument" + #: homepage/templates/homepage/index/cal-box.html:5 msgid "Arrangemangskalender" msgstr "Arrangemangskalender" @@ -240,55 +288,55 @@ msgid "DTEK-wikin, där allt kul händer!" msgstr "DTEK-wikin, där allt kul händer!" #: templates/header/header-menu-box.html:66 -#: templates/header/header-menu-box.html:72 +#: templates/header/header-menu-box.html:70 msgid "Styrdokument" msgstr "Styrdokument" -#: templates/header/header-menu-box.html:82 +#: templates/header/header-menu-box.html:80 msgid "Databussen" msgstr "Databussen" -#: templates/header/header-menu-box.html:88 +#: templates/header/header-menu-box.html:86 msgid "Mer info om Databussen" msgstr "Mer info om Databussen" -#: templates/header/header-menu-box.html:98 +#: templates/header/header-menu-box.html:96 msgid "Schema" msgstr "Schema" -#: templates/header/header-menu-box.html:104 +#: templates/header/header-menu-box.html:102 msgid "TimeEdit" msgstr "TimeEdit" -#: templates/header/header-menu-box.html:114 +#: templates/header/header-menu-box.html:112 msgid "Grupprum" msgstr "Grupprum" -#: templates/header/header-menu-box.html:120 +#: templates/header/header-menu-box.html:118 msgid "Boka grupprum på Chalmers" msgstr "Boka grupprum på Chalmers" -#: templates/header/header-menu-box.html:130 +#: templates/header/header-menu-box.html:128 msgid "Kårkort" msgstr "Kårkort" -#: templates/header/header-menu-box.html:136 +#: templates/header/header-menu-box.html:134 msgid "Genväg för att ladda ditt kårkort" msgstr "Genväg för att ladda ditt kårkort" -#: templates/header/header-menu-box.html:146 +#: templates/header/header-menu-box.html:144 msgid "Karta" msgstr "Karta" -#: templates/header/header-menu-box.html:152 +#: templates/header/header-menu-box.html:150 msgid "Karta över Campus" msgstr "Karta över Campus" -#: templates/header/header-menu-box.html:162 +#: templates/header/header-menu-box.html:160 msgid "Veckobrev" msgstr "Veckobrev" -#: templates/header/header-menu-box.html:166 +#: templates/header/header-menu-box.html:164 msgid "" "Anmäl dig till datas veckobrev, med alla arrangemang och annat som händer på " "sektionen" @@ -296,11 +344,11 @@ msgstr "" "Anmäl dig till datas veckobrev, med alla arrangemang och annat som händer på " "sektionen" -#: templates/header/header-menu-box.html:174 +#: templates/header/header-menu-box.html:172 msgid "Studiesocial hjälp" msgstr "Studiesocial hjälp" -#: templates/header/header-menu-box.html:178 +#: templates/header/header-menu-box.html:176 msgid "" "Om du känner att studierna går tufft,\n" " du känner dig nere, känner dig kränkt eller "