Add logged-in links
This commit is contained in:
parent
b1c79d104d
commit
c835e9ab32
|
@ -24,7 +24,14 @@
|
||||||
|
|
||||||
<li class="header">:: Site Admin</li>
|
<li class="header">:: Site Admin</li>
|
||||||
{% if session["login"] %}
|
{% 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 %}
|
{% else %}
|
||||||
<li><a href="{{ url_for('account.login') }}">Log in</a></li>
|
<li><a href="{{ url_for('account.login') }}">Log in</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -97,18 +97,18 @@ table.table-wide {
|
||||||
}
|
}
|
||||||
|
|
||||||
table.table th {
|
table.table th {
|
||||||
background-color: #003366;
|
background-color: #333333;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.table tr:nth-child(even) {
|
table.table tr:nth-child(even) {
|
||||||
background-color: #000000;
|
background-color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.table tr:nth-child(odd) {
|
table.table tr:nth-child(odd) {
|
||||||
background-color: #202020;
|
background-color: #CFCFCF;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.table td {
|
table.table td {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user