From e401549e2903ef090b5ba39b68f4c3ae2dc48b7a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 2 Apr 2019 21:51:00 -0500 Subject: [PATCH] Remove deprecated menu template using "simple" menus exclusively now --- rattail_demo/web/templates/menu.mako | 49 ---------------------------- 1 file changed, 49 deletions(-) delete mode 100644 rattail_demo/web/templates/menu.mako diff --git a/rattail_demo/web/templates/menu.mako b/rattail_demo/web/templates/menu.mako deleted file mode 100644 index 1b599a0..0000000 --- a/rattail_demo/web/templates/menu.mako +++ /dev/null @@ -1,49 +0,0 @@ -## -*- coding: utf-8; -*- -<%inherit file="tailbone:templates/menu.mako" /> - -<%def name="main_menu_items()"> - - % if request.rattail_config.getbool('tailbone', 'menus.simple', default=False): - ${parent.main_menu_items()} - % else: - - % if request.has_any_perm('users.list', 'roles.list', 'settings.list', 'upgrades.list'): -
  • - Admin - -
  • - % endif - - % if request.user: -
  • - ${request.user}${" ({})".format(inbox_count) if inbox_count else ''} -
      - % if request.is_root: -
    • ${h.link_to("Stop being root", url('stop_root'))}
    • - % elif request.is_admin: -
    • ${h.link_to("Become root", url('become_root'))}
    • - % endif -
    • ${h.link_to("Messages{}".format(" ({})".format(inbox_count) if inbox_count else ''), url('messages.inbox'))}
    • -
    • ${h.link_to("Change Password", url('change_password'))}
    • -
    • ${h.link_to("Logout", url('logout'))}
    • -
    -
  • - % else: -
  • ${h.link_to("Login", url('login'))}
  • - % endif - - % endif -