master
parent
0a32fb4a8e
commit
799497fe9b
@ -1,13 +1,19 @@
|
|||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
|
<nav>
|
||||||
|
<a href="{% url 'home' %}">Home</a>
|
||||||
|
{% if person == '' %}
|
||||||
|
<a href="{% url 'login_form' %}">Login</a>
|
||||||
|
<a href="{% url 'register_form' %}">Register</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="{% url 'courses' %}">Courses</a>
|
||||||
|
<a href="{% url 'profile' %}">Profile</a>
|
||||||
|
{% endif %}
|
||||||
|
</nav>
|
||||||
{% if person != '' %}
|
{% if person != '' %}
|
||||||
<h1>Welcome {{ person.name }}!</h1>
|
<h1>Welcome {{ person.name }}!</h1>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1>Welcome young padawan!</h1>
|
<h1>Welcome young padawan!</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{% url 'login_form' %}">Login</a>
|
|
||||||
<a href="{% url 'register_form' %}">Register</a>
|
|
||||||
<a href="{% url 'courses' %}">Courses</a>
|
|
||||||
<a href="{% url 'profile' %}">Profile</a>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -1,7 +0,0 @@
|
|||||||
<html>
|
|
||||||
<body>
|
|
||||||
{% for user in users %}
|
|
||||||
{{ user }}
|
|
||||||
{% endfor %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in new issue