Make login template use same logo as home page

This commit is contained in:
Lance Edgar 2017-07-31 13:58:38 -05:00
parent 94894b2d27
commit 5b35c3dd3b
3 changed files with 7 additions and 2 deletions

View file

@ -4,7 +4,7 @@
******************************/
#logo {
margin: auto;
margin: 40px auto;
}
div.form {

View file

@ -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()">

View file

@ -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,
}