diff --git a/amanuensis/resources/page.css b/amanuensis/resources/page.css index b65cf06..8cfeced 100644 --- a/amanuensis/resources/page.css +++ b/amanuensis/resources/page.css @@ -16,9 +16,15 @@ div#header { background-color: #ffffff; box-shadow: 2px 2px 10px #888888; border-radius: 5px; + overflow: auto; } div#header p, div#header h2 { margin: 5px; + float: left; +} +div#login-status { + float: right; + text-align: right; } div#sidebar { width: 200px; diff --git a/amanuensis/server/auth.py b/amanuensis/server/auth.py index f719642..780abf4 100644 --- a/amanuensis/server/auth.py +++ b/amanuensis/server/auth.py @@ -40,6 +40,6 @@ def get_bp(login_manager): @login_required def logout(): logout_user() - return redirect(url_for('auth.login')) + return redirect(url_for('home.home')) return bp diff --git a/amanuensis/server/home.py b/amanuensis/server/home.py index 326dba1..c2b76e0 100644 --- a/amanuensis/server/home.py +++ b/amanuensis/server/home.py @@ -30,7 +30,6 @@ def get_bp(): bp = Blueprint('home', __name__, url_prefix='/home') @bp.route('/', methods=['GET']) - @login_required def home(): return render_template('home/home.html') diff --git a/amanuensis/templates/auth/login.html b/amanuensis/templates/auth/login.html index 621177c..f238af8 100644 --- a/amanuensis/templates/auth/login.html +++ b/amanuensis/templates/auth/login.html @@ -1,6 +1,7 @@ {% extends "page_1col.html" %} {% block title %}Login | Amanuensis{% endblock %} {% block header %}