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="render_this_page()">
|
||||
${self.page_content()}
|
||||
</%def>
|
||||
|
||||
<%def name="page_content()">
|
||||
<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-content">
|
||||
${form.render_vue_tag()}
|
||||
|
@ -44,6 +40,3 @@
|
|||
|
||||
</script>
|
||||
</%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;")}
|
||||
</%def>
|
||||
|
||||
<%def name="full_logo()">
|
||||
${h.image(config.get('wuttaweb.logo_url', default=request.static_url('wuttaweb:static/img/logo.png')), f"{app.get_title()} logo")}
|
||||
<%def name="full_logo(image_url=None)">
|
||||
${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 name="footer()">
|
||||
|
|
|
@ -4,16 +4,9 @@
|
|||
|
||||
<%def name="title()">Home</%def>
|
||||
|
||||
<%def name="render_this_page()">
|
||||
${self.page_content()}
|
||||
</%def>
|
||||
|
||||
<%def name="page_content()">
|
||||
<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>
|
||||
</div>
|
||||
</%def>
|
||||
|
||||
|
||||
${parent.body()}
|
||||
|
|
Loading…
Reference in a new issue