You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
970 B
29 lines
970 B
<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>
|
|
<a href="{% url 'search' %}">Search</a>
|
|
{% endif %}
|
|
</nav>
|
|
<h1>Courses for {{ person.name }}</h1>
|
|
{% if courses %}
|
|
{% for course in courses %}
|
|
<a href="{% url 'details' course.id %}">{{ course.title }}</a>
|
|
{% endfor %}
|
|
{% else %}
|
|
<p>No course yet</p>
|
|
{% endif %}
|
|
<br/>
|
|
{% if person %}
|
|
{% if person.role == "Teacher" %}
|
|
<a href="{% url 'create_course' %}">Create</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
</body>
|
|
</html> |