Add logged-in links

This commit is contained in:
Noah 2014-04-09 22:09:48 -07:00
parent b1c79d104d
commit c835e9ab32
2 changed files with 11 additions and 4 deletions

View File

@ -24,7 +24,14 @@
<li class="header">:: Site Admin</li>
{% if session["login"] %}
<li><a href="{{ url_for('account.logout') }}">Log out</a></li>
{% if session["role"] == "admin" %}
<li><a href="{{ url_for('admin.index') }}">Admin Center</a></li>
{% endif %}
<li><a href="{{ url_for('blog.update') }}">Update Blog</a></li>
{% if "impersonator" in session %}
<li><a href="{{ url_for('admin.unimpersonate') }}">Unimpersonate</a>
{% endif %}
<li><a href="{{ url_for('account.logout') }}">Log out {{ session["username"] }}</a></li>
{% else %}
<li><a href="{{ url_for('account.login') }}">Log in</a></li>
{% endif %}

View File

@ -97,18 +97,18 @@ table.table-wide {
}
table.table th {
background-color: #003366;
background-color: #333333;
color: #FFFFFF;
text-align: left;
padding: 4px;
}
table.table tr:nth-child(even) {
background-color: #000000;
background-color: #FFFFFF;
}
table.table tr:nth-child(odd) {
background-color: #202020;
background-color: #CFCFCF;
}
table.table td {