X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/e2e26ca7620b47ac804e99f1a3449f80473fdbf3..fc3d026d2fd25e7bffbb3aa77be78a48f5be7b5a:/prawokultury/menu_items.py diff --git a/prawokultury/menu_items.py b/prawokultury/menu_items.py index f780c48..581455c 100644 --- a/prawokultury/menu_items.py +++ b/prawokultury/menu_items.py @@ -5,25 +5,19 @@ from django.core.urlresolvers import reverse_lazy from django.utils.translation import ugettext_lazy as _ -ITEMS = [] - -ITEMS.append(ObjectMenuItem( - obj_get=lambda:Entry.published_objects.get(slug_pl='o-nas') -)) - -ITEMS.append(ModelMenuItem(Entry, reverse_lazy('migdal_entry_list_publications'), - field_lookups={'type': 'publications'}, title=_('Publications'))) - -ITEMS.append(MenuItem(reverse_lazy('events'), _('Events'), - more_urls=(reverse_lazy('events_past'),))) - -ITEMS.append(ObjectMenuItem( - obj_get=lambda:Category.objects.get(slug_pl='stanowisko'), - rev_lookups={Entry: 'categories'}, - title=_('Positions') -)) - -ITEMS.append(ObjectMenuItem( - obj_get=lambda:Entry.published_objects.get(slug_pl='pierwsza-pomoc'), - title=_('First aid in copyright') -)) +ITEMS = [ + ObjectMenuItem(obj_get=lambda: Entry.published_objects.get(slug_pl='o-nas')), + ModelMenuItem(Entry, reverse_lazy('migdal_entry_list_publications'), + field_lookups={'type': 'publications'}, title=_('Publications')), + MenuItem(reverse_lazy('events'), _('Events'), langs=['en']), + MenuItem('/kurs/', u'Kurs dla uczelni', langs=['pl']), + ObjectMenuItem( + obj_get=lambda: Category.objects.get(slug_pl='stanowisko'), + rev_lookups={Entry: 'categories'}, + title=_('Positions')), + MenuItem( + reverse_lazy('questions'), _('First aid')), + ObjectMenuItem( + obj_get=lambda: Entry.published_objects.get(slug_pl='pierwsza-pomoc'), + title=_('Guide')), +]