3
0
Fork 0

fix: add separate def for middle buttons on App Info page

This commit is contained in:
Lance Edgar 2026-01-03 11:14:55 -06:00
parent aa98267178
commit ec19531518

View file

@ -36,31 +36,7 @@
</nav>
<div class="buttons">
% if request.has_perm("master_views.list"):
<wutta-button type="is-primary"
tag="a" href="${url('master_views')}"
icon-left="eye"
label="Master Views"
once />
% endif
% if request.has_perm("app_tables.list"):
<wutta-button type="is-primary"
tag="a" href="${url('app_tables')}"
icon-left="table"
label="App Tables"
once />
% endif
% if request.has_perm("alembic.dashboard"):
<wutta-button type="is-primary"
tag="a" href="${url('alembic.dashboard')}"
icon-left="forward"
label="Alembic Dashboard"
once />
% endif
${self.middle_buttons()}
</div>
<nav class="panel">
@ -123,6 +99,32 @@
</%def>
<%def name="middle_buttons()">
% if request.has_perm("master_views.list"):
<wutta-button type="is-primary"
tag="a" href="${url('master_views')}"
icon-left="eye"
label="Master Views"
once />
% endif
% if request.has_perm("app_tables.list"):
<wutta-button type="is-primary"
tag="a" href="${url('app_tables')}"
icon-left="table"
label="App Tables"
once />
% endif
% if request.has_perm("alembic.dashboard"):
<wutta-button type="is-primary"
tag="a" href="${url('alembic.dashboard')}"
icon-left="forward"
label="Alembic Dashboard"
once />
% endif
</%def>
<%def name="modify_vue_vars()">
${parent.modify_vue_vars()}
<script>
@ -135,6 +137,3 @@
</script>
</%def>
${parent.body()}