blob: a394d69e6d5eb53752b01d3fa5103e23836980f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{% block title %}CodeMash{% endblock %}</title>
<meta name="viewport" content="width=device-width">
</head>
<body>
<ul>
<li><a href="{% url 'home' %}">Home</a></li>
<li><a href="{% url 'contact:form' %}">Contact Us</a></li>
{% if user.is_staff %}
<li><a href="{% url 'admin:index' %}">Admin Area</a></li>
{% endif %}
{% if user.is_authenticated %}
<li><a href="{% url 'account:profile' %}">{{ user.username }}'s profile</a></li>
<li><a href="{% url 'auth:logout' %}">Logout ({{ user.username }})</a></li>
{% else %}
<li><a href="{% url 'auth:login' %}">Login</a></li>
<li><a href="{% url 'account:create' %}">Register</a></li>
{% endif %}
</ul>
{% block content %}
{% endblock %}
</body>
</html>
|