Browse Source

Add logged-in links

pull/2/head
Noah Petherbridge 8 years ago
parent
commit
c835e9ab32
  1. 9
      rophako/www/layout.html
  2. 6
      rophako/www/smoke/style.css

9
rophako/www/layout.html

@ -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 %}

6
rophako/www/smoke/style.css

@ -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 {

Loading…
Cancel
Save