diff --git a/shop.py b/shop.py index fa10336..c8cabfb 100644 --- a/shop.py +++ b/shop.py @@ -253,6 +253,7 @@ def remove_toggled(): for i,row in enumerate(contents_file.read().decode('utf-8').split("\n")): if '[x]' not in row: contents.append(row) + else: changed=True contents_file.close() if changed: @@ -411,7 +412,7 @@ def register(): @app.route('/profile', methods=['GET', 'POST']) def profile(): if not session.get('logged_in'): - abort(401) + return redirect(url_for('login')) error = None user=get_username(session.get('user')) if request.method == 'POST': diff --git a/static/style.css b/static/style.css index 026c2a7..02ed379 100644 --- a/static/style.css +++ b/static/style.css @@ -16,8 +16,8 @@ td { height: 1.75em; } .entries h2 { margin-left: -1em; } .add-entry { font-size: 0.9em; } .add-entry dl { font-weight: bold; } -.metanav { text-align: right; font-size: 0.8em; padding: 0.3em; - margin-bottom: 1em; background: #fafafa; } +.metanav { text-align: right; font-size: 1.2em; + background: #fafafa; } .flash { background: #cee5F5; padding: 0.5em; border: 1px solid #aacbe2; } .error { background: #f0d6d6; padding: 0.5em; } @@ -32,6 +32,7 @@ td { height: 1.75em; } cursor: pointer; font-weight: bold; letter-spacing:-0.1em; + margin: 0; } /* Dropdown button on hover & focus */ diff --git a/templates/layout.html b/templates/layout.html index 6372840..e9aff35 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -17,9 +17,9 @@