display currently logged in username
This commit is contained in:
parent
3a19473a4b
commit
8bd2584ffb
|
@ -272,7 +272,13 @@ cursor:pointer;
|
||||||
z-index:2;
|
z-index:2;
|
||||||
clear:both;}
|
clear:both;}
|
||||||
|
|
||||||
#loginMenu li
|
#loginMenu li.usernameDisplay {
|
||||||
|
float: left;
|
||||||
|
display: inline;
|
||||||
|
padding: 6px 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loginMenu li.loginTab
|
||||||
{display:inline;
|
{display:inline;
|
||||||
float:left;
|
float:left;
|
||||||
background-color:#FFF;
|
background-color:#FFF;
|
||||||
|
@ -288,16 +294,16 @@ border-top-left-radius:8px;
|
||||||
-webkit-box-shadow:0px -1px 3px #d4d4d4;
|
-webkit-box-shadow:0px -1px 3px #d4d4d4;
|
||||||
box-shadow:0px -1px 3px #d4d4d4;}/*not converted to links*/
|
box-shadow:0px -1px 3px #d4d4d4;}/*not converted to links*/
|
||||||
|
|
||||||
#loginMenu li a, #loginMenu li a:link, #loginMenu li a:visited, #loginMenu li a:active
|
#loginMenu li.loginTab a, #loginMenu li.loginTab a:link, #loginMenu li.loginTab a:visited, #loginMenu li.loginTab a:active
|
||||||
{text-decoration:none;
|
{text-decoration:none;
|
||||||
color:#ff8400;}
|
color:#ff8400;}
|
||||||
|
|
||||||
#loginMenu li:hover
|
#loginMenu li.loginTab:hover
|
||||||
{color:#FFF;
|
{color:#FFF;
|
||||||
background-color:#f7bd00;
|
background-color:#f7bd00;
|
||||||
border:1px solid transparent;}
|
border:1px solid transparent;}
|
||||||
|
|
||||||
#loginMenu li:hover a
|
#loginMenu li.loginTab:hover a
|
||||||
{color:#FFF;}
|
{color:#FFF;}
|
||||||
|
|
||||||
.loginMenuSelected
|
.loginMenuSelected
|
||||||
|
|
|
@ -48,13 +48,14 @@
|
||||||
<ul id="loginMenu">
|
<ul id="loginMenu">
|
||||||
|
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<li><a href="/accounts/logout">Logout</a></li>
|
<li class="usernameDisplay">Hi {{ user.username }}</li>
|
||||||
|
<li class="loginTab"><a href="/accounts/logout">Logout</a></li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li><a href="/accounts/login">Login</a></li>
|
<li class="loginTab"><a href="/accounts/login">Login</a></li>
|
||||||
<li><a href="/accounts/signup">Register</a></li>
|
<li class="loginTab"><a href="/accounts/signup">Register</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<li><a href="/contact">Contact Us</a></li>
|
<li class="loginTab"><a href="/contact">Contact Us</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user