mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 02:54:20 +00:00
forum: fix reply page
Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
parent
38622c98e9
commit
3521ad699e
@ -19,42 +19,46 @@
|
|||||||
> <a href="{{ topic.forum.get_absolute_url() }}">{{ topic.forum }}</a>
|
> <a href="{{ topic.forum.get_absolute_url() }}">{{ topic.forum }}</a>
|
||||||
> <a href="{{ topic.get_absolute_url() }}">{{ topic }}</a>
|
> <a href="{{ topic.get_absolute_url() }}">{{ topic }}</a>
|
||||||
</p>
|
</p>
|
||||||
<h3>{{ topic.title }}</h3>
|
<div id="forum">
|
||||||
<h4>{% trans %}Reply{% endtrans %}</h4>
|
<h3>{{ topic.title }}</h3>
|
||||||
{% else %}
|
<h4>{% trans %}Reply{% endtrans %}</h4>
|
||||||
<h4>{% trans %}New topic{% endtrans %}</h4>
|
{% else %}
|
||||||
{% endif %}
|
<h4>{% trans %}New topic{% endtrans %}</h4>
|
||||||
<form action="" method="post" enctype="multipart/form-data">
|
{% endif %}
|
||||||
{% csrf_token %}
|
<form action="" method="post" enctype="multipart/form-data">
|
||||||
{{ form.as_p() }}
|
{% csrf_token %}
|
||||||
<p><input type="button" value="{% trans %}Preview{% endtrans %}" onclick="javascript:make_preview();" /></p>
|
{{ form.as_p() }}
|
||||||
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
|
<p><input type="button" value="{% trans %}Preview{% endtrans %}" onclick="javascript:make_preview();" /></p>
|
||||||
</form>
|
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
|
||||||
<div id="preview_message" class="message" style="display: none;">
|
</form>
|
||||||
<div class="msg_author">
|
<div id="preview_message" class="message" style="display: none;">
|
||||||
{% if user.avatar_pict %}
|
<div class="msg_author">
|
||||||
<img src="{{ user.avatar_pict.get_download_url() }}" alt="{% trans %}Profile{% endtrans %}" id="picture" />
|
{% if user.avatar_pict %}
|
||||||
{% else %}
|
<img src="{{ user.avatar_pict.get_download_url() }}" alt="{% trans %}Profile{% endtrans %}" id="picture" />
|
||||||
<img src="{{ static('core/img/unknown.jpg') }}" alt="{% trans %}Profile{% endtrans %}" id="picture" />
|
{% else %}
|
||||||
{% endif %}
|
<img src="{{ static('core/img/unknown.jpg') }}" alt="{% trans %}Profile{% endtrans %}" id="picture" />
|
||||||
<br/>
|
{% endif %}
|
||||||
<strong><a href="{{ user.get_absolute_url() }}">{{ user.get_short_name() }}</a></strong>
|
<br/>
|
||||||
</div>
|
<strong><a href="{{ user.get_absolute_url() }}">{{ user.get_short_name() }}</a></strong>
|
||||||
<div class="msg_content">
|
</div>
|
||||||
<hr>
|
<div class="msg_content">
|
||||||
<div id="preview" class="ib w_big"></div>
|
<hr>
|
||||||
<div class="forum_signature">{{ user.forum_signature|markdown }}</div>
|
<div id="preview" class="ib w_big"></div>
|
||||||
|
<div class="forum_signature">{{ user.forum_signature|markdown }}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
{% if topic %}
|
||||||
|
{% for m in topic.messages.select_related('author__avatar_pict').order_by('-id')[:10] %}
|
||||||
|
{{ display_message(m, user) }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
{% if topic %}
|
|
||||||
{% for m in topic.messages.select_related('author__avatar_pict').order_by('-id')[:10] %}
|
|
||||||
{{ display_message(m, user) }}
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user