Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
a3be8b3a
Commit
a3be8b3a
authored
May 13, 2016
by
David Haynes
Browse files
nav bar supports registereduser
- also removed redundant signup link.. -
parent
675f00d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/go/templates/layouts/navigation.html
View file @
a3be8b3a
...
...
@@ -12,8 +12,10 @@
<ul
class=
"nav navbar-nav navbar-left"
>
<li><a
href=
"{% url 'about' %}"
>
About
</a></li>
{% if user.is_authenticated %}
{% if user.registereduser.approved %}
<li><a
href=
"{% url 'my_links' %}"
>
My Links
</a></li>
{% if not user|is_registered %}
{% endif %}
{% if not user.registereduser.registered %}
<li><a
href=
"{% url 'signup' %}"
>
Register
</a></li>
{% endif %}
{% endif %}
...
...
@@ -24,12 +26,11 @@
{% else %}
<li><a
href=
"{% url 'go_login' %}"
>
Log In
<i
class=
"fa fa-sign-in fa-fw"
></i></a></li>
{% endif %}
{% if user.is_staff
and user|is_approved
%}
{% if user.is_staff %}
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
Administration
<i
class=
"fa fa-caret-down fa-fw"
></i></a>
<ul
class=
"dropdown-menu dropdown-menu-left"
>
<li><a
href=
"{% url 'useradmin' %}"
>
User Moderation
<i
class=
"fa fa-users fa-fw"
></i></a></li>
<li><a
href=
"{% url 'signup' %}"
>
Signup New Users
<i
class=
"fa fa-user-plus fa-fw"
></i></a></li>
</ul>
</li>
{% endif %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment