Browse Source

Add logged-in links

pull/2/head
Noah Petherbridge 7 years ago
parent
commit
c835e9ab32
2 changed files with 11 additions and 4 deletions
  1. +8
    -1
      rophako/www/layout.html
  2. +3
    -3
      rophako/www/smoke/style.css

+ 8
- 1
rophako/www/layout.html 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 %}


+ 3
- 3
rophako/www/smoke/style.css 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 {


Loading…
Cancel
Save