Make login template use same logo as home page
This commit is contained in:
parent
94894b2d27
commit
5b35c3dd3b
|
@ -4,7 +4,7 @@
|
|||
******************************/
|
||||
|
||||
#logo {
|
||||
margin: auto;
|
||||
margin: 40px auto;
|
||||
}
|
||||
|
||||
div.form {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</%def>
|
||||
|
||||
<%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 name="login_form()">
|
||||
|
|
|
@ -117,9 +117,14 @@ class AuthenticationView(View):
|
|||
else:
|
||||
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 {
|
||||
'form': forms.FormRenderer(form),
|
||||
'referrer': referrer,
|
||||
'image_url': image_url,
|
||||
'dialog': mobile,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue