Make login template use same logo as home page
This commit is contained in:
parent
94894b2d27
commit
5b35c3dd3b
|
@ -4,7 +4,7 @@
|
||||||
******************************/
|
******************************/
|
||||||
|
|
||||||
#logo {
|
#logo {
|
||||||
margin: auto;
|
margin: 40px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.form {
|
div.form {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="logo()">
|
<%def name="logo()">
|
||||||
${h.image(request.static_url('tailbone:static/img/home_logo.png'), "Rattail Logo", id='logo')}
|
${h.image(image_url, "{} logo".format(capture(self.app_title)), id='logo', width=500)}
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="login_form()">
|
<%def name="login_form()">
|
||||||
|
|
|
@ -117,9 +117,14 @@ class AuthenticationView(View):
|
||||||
else:
|
else:
|
||||||
self.request.session.flash("Invalid username or password", 'error')
|
self.request.session.flash("Invalid username or password", 'error')
|
||||||
|
|
||||||
|
image_url = self.rattail_config.get(
|
||||||
|
'tailbone', 'main_image_url',
|
||||||
|
default=self.request.static_url('tailbone:static/img/home_logo.png'))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'form': forms.FormRenderer(form),
|
'form': forms.FormRenderer(form),
|
||||||
'referrer': referrer,
|
'referrer': referrer,
|
||||||
|
'image_url': image_url,
|
||||||
'dialog': mobile,
|
'dialog': mobile,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue