ui touchups

This commit is contained in:
q
2016-07-04 14:23:32 +03:00
parent 115cc9a213
commit 468c3e3815
3 changed files with 8 additions and 6 deletions

View File

@@ -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':

View File

@@ -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 */

View File

@@ -17,9 +17,9 @@
<div class="dropdown">
<p onclick="dropDown()" class="dropbtn">&sube;&supe;</p>
<div id="Dropdown" class="dropdown-content">
<a href="#" onclick="reload();">Reload page</a>
<a href="{{ url_for('profile') }}">Profile</a>
<a href="{{ url_for('logout') }}">Logout</a>
<a href="#" onclick="reload();">Reload &#x21bb;</a>
<a href="{{ url_for('profile') }}">Profile &#9786;</a>
<a href="{{ url_for('logout') }}">Logout &#10162;</a>
</div>
</div>
</div>