<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<%doc>
- Copyright (C) 2020 The Meme Factory, Inc. http://www.karlpinc.com/
+ Copyright (C) 2020, 2024 The Meme Factory, Inc. http://www.karlpinc.com/
This file is part of PGWUI_Menu.
from pgwui_common.path import asset_abspath
base_mak = asset_abspath('pgwui_common:templates/base.mak')
+ lib_mak = asset_abspath('pgwui_common:templates/lib.mak')
%>
<%inherit file="${base_mak}" />
+<%namespace name="lib" file="${lib_mak}" />
<%block name="title">${pgwui_menu['menu_label']}</%block>
<%block name="stylesheet_links">
${parent.stylesheet_links()}
</%block>
<%def name="navbar_content()">
- ${parent.navbar_content()}
- % if 'pgwui_logout' in pgwui['urls']:
- | <a href="${pgwui['urls']['pgwui_logout']}">Logout</a>
- % endif
+ <%parent:navbar_content>
+ <%lib:have_navbar_logout>
+ ${caller.body()}
+ </%lib:have_navbar_logout>
+ </%parent:navbar_content>
</%def>
<ul>