improve login page styling

fixup css
This commit is contained in:
Matthias Bussonnier
2014-09-21 18:26:07 +02:00
parent ea04bdb30c
commit e3946831d9
4 changed files with 57 additions and 10 deletions

View File

@@ -30,6 +30,7 @@ class RootHandler(BaseHandler):
class HomeHandler(BaseHandler):
"""Render the user's home page."""
@web.authenticated
def get(self):
html = self.render_template('home.html',
@@ -40,6 +41,7 @@ class HomeHandler(BaseHandler):
class AdminHandler(BaseHandler):
"""Render the admin page."""
@admin_only
def get(self):
html = self.render_template('admin.html',
@@ -48,8 +50,9 @@ class AdminHandler(BaseHandler):
)
self.finish(html)
default_handlers = [
(r'/', RootHandler),
(r'/home', HomeHandler),
(r'/admin', AdminHandler),
]
]