From a01d33d9892b1721c9e9ead4ecc8eddf4ecdee72 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Sat, 16 Apr 2016 21:00:01 +0200 Subject: [PATCH] Change navigation handling. Use a tuple instead of a single string so that the name can differ significantly from the function that is called. --- index.py | 10 +++++----- templates/_base.html | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/index.py b/index.py index 4f1445c..79be4b9 100755 --- a/index.py +++ b/index.py @@ -53,13 +53,13 @@ def isLoggedin(): def buildNav(): nav = [] if isLoggedin(): - nav.append('edit') + nav.append(('Edit own Account', 'edit')) if isAdmin(): - nav.append('list') - nav.append('create') - nav.append('logout') + nav.append(('List Accounts', 'list_users')) + nav.append(('Create Account', 'create')) + nav.append(('Logout', 'logout')) else: - nav.append('login') + nav.append(('Login', 'login')) return nav diff --git a/templates/_base.html b/templates/_base.html index 25746c0..8cdb793 100644 --- a/templates/_base.html +++ b/templates/_base.html @@ -19,9 +19,9 @@