menus.py 2.79 KB
Newer Older
1 2 3 4 5 6
"""
This file defines the menu layout.

We set the variable `:py:main` to form the menu tree.
"""

7
from django.utils.translation import ugettext_lazy as _
8

9 10
__all__ = ['MAIN_MENU']

11 12 13 14 15 16
"""
Defines the menu layout as a nested dict

The authenticated key indicates something should only
be visible for logged-in users. *Do not* rely on that for authentication!
"""
17
MAIN_MENU = [
18
    {'title': 'Home', 'name': 'index'},
19 20 21 22 23
    {
        'title': _('Association'),
        'submenu': [
            {'title': _('Board'), 'name': 'activemembers:boards'},
            {'title': _('Committees'), 'name': 'activemembers:committees'},
24
            {'title': _('Societies'), 'name': 'activemembers:societies'},
25 26
            {'title': _('Documents'), 'name': 'documents:index'},
            {'title': _('Merchandise'), 'name': 'merchandise:index'},
27 28
            {'title': _('Sibling Associations'),
             'name': 'sibling-associations'},
29 30
            {'title': _('Become a Member'), 'name': 'registrations:index'},
            {'title': _('Thabloid'), 'name': 'thabloid:index'},
Sébastiaan Versteeg's avatar
Sébastiaan Versteeg committed
31
            {'title': _('Alumni'), 'name': 'alumni'},
32 33 34 35 36 37 38
        ],
    },
    {
        'title': _('For Members'),
        'submenu': [
            {'title': _('Member list'), 'name': 'members:index'},
            {'title': _('Photos'), 'name': 'photos:index'},
39
            {'title': _('Statistics'), 'name': 'members:statistics'},
40 41
            {'title': _('Styleguide'), 'name': 'styleguide'},
            {'title': _('Become Active'), 'name': 'become-active'},
42 43
            {'title': _('Nextcloud'), 'url': 'https://cloud.thalia.nu/',
             'authenticated': True},
44 45 46 47 48 49 50 51
        ],
    },
    {
        'title': _('Calendar'),
        'name': 'events:index',
    },
    {
        'title': _('Career'),
52
        'submenu': [
53 54 55 56 57 58
            {'title': _('Partners'), 'name': 'partners:index'},
            {'title': _('Vacancies'), 'name': 'partners:vacancies'},
        ],
    },
    {
        'title': _('Education'),
59
        'submenu': [
60
            {
61 62
                'title': _('Summaries & Exams'),
                'name': 'education:courses',
Thom Wiggers's avatar
Thom Wiggers committed
63 64
                # TODO: Remove submenu when the new template is implemented
                # everywhere
65 66 67 68 69 70 71 72 73 74 75
                'submenu': [
                    {
                        'title': _('Submit Exam'),
                        'name': 'education:submit-exam'
                    },
                    {
                        'title': _('Submit Summary'),
                        'name': 'education:submit-summary'
                    },
                ],
            },
76 77 78 79 80
            {'title': _('Book Sale'), 'name': 'education:books'},
            {
                'title': _('Student Participation'),
                'name': 'education:student-participation'
            },
81 82
        ]
    },
Joost Rijneveld's avatar
Joost Rijneveld committed
83
    {'title': _('Contact'), 'name': 'contact'},
84
]