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.
43 lines
1.7 KiB
43 lines
1.7 KiB
<html>
|
|
<head>
|
|
{% load static %}
|
|
<link rel="stylesheet" href="{% static 'redis_app/style.css' %}">
|
|
</head>
|
|
<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>
|
|
<a href="{% url 'notifications_view' %}">Notifications</a>
|
|
{% if person.role == 'Teacher' %}
|
|
<a href="{% url 'publish_message' %}">Publish a message</a>
|
|
{% endif %}
|
|
<a href="{% url 'logout' %}">Logout</a>
|
|
{% endif %}
|
|
</nav>
|
|
<div class="body">
|
|
<div class="container">
|
|
<div class="div-container">
|
|
{% if error_message %}
|
|
<p class="error-message">{{ error_message }}</p>
|
|
{% endif %}
|
|
{% if success_message %}
|
|
<p class="success-message">{{ success_message }}</p>
|
|
{% endif %}
|
|
|
|
<!-- Displaying a welcome message with his name if he's login. Helps us to know when we're logged in or not, and with which account -->
|
|
{% if person != '' %}
|
|
<h1>Welcome {{ person.name }}!</h1>
|
|
{% else %}
|
|
<h1>Welcome young padawan!</h1>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |