fix: add separate def for middle buttons on App Info page
This commit is contained in:
parent
aa98267178
commit
ec19531518
1 changed files with 27 additions and 28 deletions
|
|
@ -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()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue