master
parent
0a32fb4a8e
commit
799497fe9b
@ -1,13 +1,19 @@
|
||||
<html>
|
||||
<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 != '' %}
|
||||
<h1>Welcome {{ person.name }}!</h1>
|
||||
{% else %}
|
||||
<h1>Welcome young padawan!</h1>
|
||||
{% 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>
|
||||
</html>
|
@ -1,7 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
{% for user in users %}
|
||||
{{ user }}
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue