Coverage for website/singlepages/apps.py: 100.00%
8 statements
« prev ^ index » next coverage.py v7.6.7, created at 2025-08-14 10:31 +0000
« prev ^ index » next coverage.py v7.6.7, created at 2025-08-14 10:31 +0000
1from django.apps import AppConfig
2from django.urls import reverse
3from django.utils.translation import gettext_lazy as _
6class SinglepagesConfig(AppConfig):
7 name = "singlepages"
8 verbose_name = _("Singlepages")
10 def menu_items(self):
11 return {
12 "categories": [
13 {"name": "association", "title": "Association", "key": 1},
14 {"name": "members", "title": "For Members", "key": 2},
15 {"name": "education", "title": "Education", "key": 5},
16 ],
17 "items": [
18 {
19 "category": "association",
20 "title": "Sibling Associations",
21 "url": reverse("singlepages:sibling-associations"),
22 "key": 5,
23 },
24 {
25 "category": "members",
26 "title": "Styleguide",
27 "url": reverse("singlepages:styleguide"),
28 "key": 4,
29 },
30 {
31 "category": "members",
32 "title": "Become Active",
33 "url": reverse("singlepages:become-active"),
34 "key": 6,
35 },
36 {
37 "category": "education",
38 "title": "Student Participation",
39 "url": reverse("singlepages:student-participation"),
40 "key": 2,
41 },
42 {
43 "category": "education",
44 "title": "Student well-being",
45 "url": reverse("singlepages:student-well-being"),
46 "key": 3,
47 },
48 {
49 "title": "Contact",
50 "url": reverse("singlepages:contact"),
51 "key": 6,
52 },
53 ],
54 }