fix: cleanup templates for home, login pages
if context has 'image_url' then use that, otherwise configured logo
This commit is contained in:
parent
a34b01a6c4
commit
4bf2bb42fb
|
@ -4,13 +4,9 @@
|
||||||
|
|
||||||
<%def name="title()">Login</%def>
|
<%def name="title()">Login</%def>
|
||||||
|
|
||||||
<%def name="render_this_page()">
|
|
||||||
${self.page_content()}
|
|
||||||
</%def>
|
|
||||||
|
|
||||||
<%def name="page_content()">
|
<%def name="page_content()">
|
||||||
<div style="height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;">
|
<div style="height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;">
|
||||||
<div>${base_meta.full_logo()}</div>
|
<div>${base_meta.full_logo(image_url or None)}</div>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
${form.render_vue_tag()}
|
${form.render_vue_tag()}
|
||||||
|
@ -44,6 +40,3 @@
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
|
|
||||||
${parent.body()}
|
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
${h.image(config.get('wuttaweb.header_logo_url', default=request.static_url('wuttaweb:static/img/favicon.ico')), "Header Logo", style="height: 49px;")}
|
${h.image(config.get('wuttaweb.header_logo_url', default=request.static_url('wuttaweb:static/img/favicon.ico')), "Header Logo", style="height: 49px;")}
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="full_logo()">
|
<%def name="full_logo(image_url=None)">
|
||||||
${h.image(config.get('wuttaweb.logo_url', default=request.static_url('wuttaweb:static/img/logo.png')), f"{app.get_title()} logo")}
|
${h.image(image_url or config.get('wuttaweb.logo_url', default=request.static_url('wuttaweb:static/img/logo.png')), f"{app.get_title()} logo")}
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="footer()">
|
<%def name="footer()">
|
||||||
|
|
|
@ -4,16 +4,9 @@
|
||||||
|
|
||||||
<%def name="title()">Home</%def>
|
<%def name="title()">Home</%def>
|
||||||
|
|
||||||
<%def name="render_this_page()">
|
|
||||||
${self.page_content()}
|
|
||||||
</%def>
|
|
||||||
|
|
||||||
<%def name="page_content()">
|
<%def name="page_content()">
|
||||||
<div style="height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;">
|
<div style="height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;">
|
||||||
<div>${base_meta.full_logo()}</div>
|
<div>${base_meta.full_logo(image_url or None)}</div>
|
||||||
<h1 class="is-size-1">Welcome to ${app.get_title()}</h1>
|
<h1 class="is-size-1">Welcome to ${app.get_title()}</h1>
|
||||||
</div>
|
</div>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
|
|
||||||
${parent.body()}
|
|
||||||
|
|
Loading…
Reference in a new issue