Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
piks3l
Respect My Net
Commits
54357924
Commit
54357924
authored
May 01, 2011
by
stef
Browse files
[mod] menu saner if logged in, also now with admin link
parent
eea9bd17
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/base.html
View file @
54357924
...
...
@@ -18,11 +18,10 @@
</head>
<body>
<div
id=
"auth"
class=
"menu"
>
<a
href=
"{%root_url%}/add/"
>
Report restriction
</a>
<a
href=
"{%root_url%}/"
>
List reports
</a>
{% if user.is_authenticated %}
<a
href=
"{%root_url%}/accounts/settings"
>
{{ user.username }}
</a>
<a
href=
"{%root_url%}/accounts/logout"
>
Logout
</a>
<a
href=
"{%root_url%}/admin/"
>
Admin
</a>
{% else %}
<a
href=
"{%root_url%}/accounts/login"
>
Login
</a>
<a
href=
"{%root_url%}/accounts/register"
>
Register
</a>
...
...
@@ -30,10 +29,8 @@
</div>
<div
id=
"menu"
class=
"menu"
>
{% if user.is_authenticated %}
<a
href=
"{%root_url%}/report"
>
Report
</a>
<a
href=
"{%root_url%}"
>
List
</a>
{%endif%}
<a
href=
"{%root_url%}/add/"
>
Report restriction
</a>
<a
href=
"{%root_url%}/"
>
List reports
</a>
</div>
{% block content %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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