Skip to content
GitLab
Menu
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
3d93d876
Commit
3d93d876
authored
Jul 05, 2011
by
stef
Browse files
[enh] footer, and reorg auth/login/admin menu
parent
86e65251
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/base.html
View file @
3d93d876
...
...
@@ -19,17 +19,13 @@
{% endblock %}
</head>
<body>
<div
id=
"auth"
class=
"menu"
>
{% if user.is_authenticated %}
<a
href=
"{%root_url%}/accounts/settings"
>
{{ user.username }}
</a>
<div
id=
"auth"
class=
"menu"
>
{{ user.username }}
<a
href=
"{%root_url%}/accounts/logout"
>
{% trans "Logout" %}
</a>
<a
href=
"{%root_url%}/admin/"
>
{% trans "Admin" %}
</a>
{% else %}
<a
href=
"{%root_url%}/accounts/login"
>
{% trans "Login" %}
</a>
<a
href=
"{%root_url%}/accounts/register"
>
{% trans "Register" %}
</a>
</div>
{% endif %}
</div>
<div
id=
"menu"
class=
"menu"
>
<a
href=
"{%root_url%}/"
>
{% trans "Home" %}
</a>
<a
href=
"{%root_url%}/list"
>
{% trans "Infringements" %}
</a>
...
...
@@ -42,6 +38,13 @@
{% endblock %}
{% block other_content %}
{% endblock %}
</div>
<hr
style=
"clear: both"
/>
<div
id=
'footer'
>
{% if not user.is_authenticated %}
<a
href=
"{%root_url%}/accounts/login"
>
{% trans "Login" %}
</a>
{% endif %}
{% block footer %}
{% endblock %}
</div>
</body>
</html>
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