mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-16 19:23:27 +00:00
36 lines
901 B
Django/Jinja
36 lines
901 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
{% from 'forum/macros.jinja' import display_message %}
|
|
|
|
{% block title %}
|
|
{% trans %}Reply{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<p>
|
|
<a href="{{ url('forum:main') }}">{% trans %}Forum{% endtrans %}</a>
|
|
{% for f in topic.forum.get_parent_list() %}
|
|
> <a href="{{ f.get_absolute_url() }}">{{ f }}</a>
|
|
{% endfor %}
|
|
> <a href="{{ topic.forum.get_absolute_url() }}">{{ topic.forum }}</a>
|
|
> <a href="{{ topic.get_absolute_url() }}">{{ topic }}</a>
|
|
</p>
|
|
<h3>{{ topic.title }}</h3>
|
|
<h4>{% trans %}Reply{% endtrans %}</h4>
|
|
<form action="" method="post" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
{{ form.as_p() }}
|
|
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
|
|
</form>
|
|
|
|
<hr>
|
|
|
|
{% for m in topic.messages.select_related('author__avatar_pict').order_by('-id') %}
|
|
{{ display_message(m, user) }}
|
|
{% endfor %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|