Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
Next version
Browse files Browse the repository at this point in the history
Xiphoseer committed Jun 21, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0e35170 commit 7024e77
Showing 3 changed files with 289 additions and 242 deletions.
12 changes: 3 additions & 9 deletions pyBuchaktion/cms_menus.py
Original file line number Diff line number Diff line change
@@ -11,22 +11,16 @@ class PyBuchaktionMenu(CMSAttachMenu):

def get_nodes(self, request):

#n1 = NavigationNode(_('Buchaktion'), reverse('pyBuchaktion:index'), 1)
nodes = [
NavigationNode(_('Books'), reverse('pyBuchaktion:books'), 5001),
NavigationNode(_('All Books'), reverse('pyBuchaktion:books_all'), 5002, 5001),
NavigationNode(_('Modules'), reverse('pyBuchaktion:modules'), 5004),
NavigationNode(_('Search'), reverse('pyBuchaktion:module_search'), 5015, 5004),
NavigationNode(_("Account"), reverse('pyBuchaktion:account'), 5006),
NavigationNode(_("Propose"), reverse('pyBuchaktion:book_propose'), 5008, 5001),
NavigationNode(_("Delete"), reverse('pyBuchaktion:account_delete'), 5020, 5006),
]

nodes += [NavigationNode(_("Account"), reverse('pyBuchaktion:account'), 5006),]
#nodes += [NavigationNode(_("Logout"), reverse('pyTUID:logout'), 5020, 5006),]
#nodes += [NavigationNode(_("Login"), reverse('pyTUID:login'), 5020),]

# This does not work well with caching
# if hasattr(request, 'student') and request.student:
nodes += [NavigationNode(_("Propose"), reverse('pyBuchaktion:book_propose'), 5008, 5001)]

match = request.resolver_match
if match.url_name in ['book', 'book_order']:
book_id = match.kwargs['pk']
517 changes: 285 additions & 232 deletions pyBuchaktion/locale/de/LC_MESSAGES/django.po

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ def run(self):

setup(
name='pyBuchaktion',
version='1.1.8',
version='1.2.0',
packages=find_packages(),
include_package_data=True,
license='AGPL-3.0',

0 comments on commit 7024e77

Please sign in to comment.