Pass "urls" instead of "routes" to templates
authorKarl O. Pinc <kop@karlpinc.com>
Tue, 1 Dec 2020 02:45:36 +0000 (20:45 -0600)
committerKarl O. Pinc <kop@karlpinc.com>
Tue, 1 Dec 2020 02:45:36 +0000 (20:45 -0600)
src/pgwui_menu/templates/menu.mak

index 836bca3c5b72fe559ba1cf2b06467436c1a1eb0b..326513508c896d2bd7b93bb1472b80214a9878c0 100644 (file)
@@ -51,8 +51,8 @@
 
 <%def name="navbar_content()">
   ${parent.navbar_content()}
-  % if 'pgwui_logout' in pgwui['routes']:
-    | <a href="${pgwui['routes']['pgwui_logout']}">Logout</a>
+  % if 'pgwui_logout' in pgwui['urls']:
+    | <a href="${pgwui['urls']['pgwui_logout']}">Logout</a>
   % endif
 </%def>