Add comment system with models, forms, and UI integration for lessons
This commit is contained in:
parent
c22622ebc1
commit
95111240bc
26 changed files with 1001 additions and 77 deletions
|
|
@ -8,7 +8,7 @@
|
|||
<a href="{% url 'courses:list' %}">Les cours</a>
|
||||
<ul>
|
||||
{% for course in courses %}
|
||||
<li><a href="{% url 'courses:show' course.id course.name|slugify %}">{{ course.name }}</a></li>
|
||||
<li><a href="{% url 'courses:show' course.name|slugify course.id %}">{{ course.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
|
|
@ -32,6 +32,11 @@
|
|||
{% endif %}
|
||||
</ul>
|
||||
</li>
|
||||
{% if user.is_authenticated and user.is_staff %}
|
||||
<li>
|
||||
<a href="{% url 'admin:index' %}" class="button button-danger" title="Administration">Admin</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li>
|
||||
{% if user.is_authenticated %}
|
||||
<!-- On affiche le pseudo -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue