fix: fix some more wutta compat for base template
missed those earlier
This commit is contained in:
parent
bbd98e7b2f
commit
09612b1921
|
@ -280,7 +280,7 @@
|
||||||
<span class="header-text">
|
<span class="header-text">
|
||||||
${index_title}
|
${index_title}
|
||||||
</span>
|
</span>
|
||||||
% if master.creatable and master.show_create_link and master.has_perm('create'):
|
% if master.creatable and getattr(master, 'show_create_link', True) and master.has_perm('create'):
|
||||||
<once-button type="is-primary"
|
<once-button type="is-primary"
|
||||||
tag="a" href="${url('{}.create'.format(route_prefix))}"
|
tag="a" href="${url('{}.create'.format(route_prefix))}"
|
||||||
icon-left="plus"
|
icon-left="plus"
|
||||||
|
@ -306,7 +306,7 @@
|
||||||
<span class="header-text">
|
<span class="header-text">
|
||||||
${h.link_to(instance_title, instance_url)}
|
${h.link_to(instance_title, instance_url)}
|
||||||
</span>
|
</span>
|
||||||
% elif master.creatable and master.show_create_link and master.has_perm('create'):
|
% elif master.creatable and getattr(master, 'show_create_link', True) and master.has_perm('create'):
|
||||||
% if not request.matched_route.name.endswith('.create'):
|
% if not request.matched_route.name.endswith('.create'):
|
||||||
<once-button type="is-primary"
|
<once-button type="is-primary"
|
||||||
tag="a" href="${url('{}.create'.format(route_prefix))}"
|
tag="a" href="${url('{}.create'.format(route_prefix))}"
|
||||||
|
|
Loading…
Reference in a new issue