##// END OF EJS Templates
Changed closeForm to resetFormPosition in JS because the form isn't closed any...
Changed closeForm to resetFormPosition in JS because the form isn't closed any more

File last commit:

r1059:383bd4fa default
r1059:383bd4fa default
Show More
thread_normal.html
68 lines | 2.5 KiB | text/html | HtmlLexer
{% extends "boards/thread.html" %}
{% load i18n %}
{% load cache %}
{% load static from staticfiles %}
{% load board %}
{% block content %}
{% get_current_language as LANGUAGE_CODE %}
{% cache 600 thread_view thread.id thread.last_edit_time moderator LANGUAGE_CODE %}
<div class="image-mode-tab">
<a class="current_mode" href="{% url 'thread' opening_post.id %}">{% trans 'Normal mode' %}</a>,
<a href="{% url 'thread_gallery' opening_post.id %}">{% trans 'Gallery mode' %}</a>
</div>
{% if bumpable and thread.has_post_limit %}
<div class="bar-bg">
<div class="bar-value" style="width:{{ bumplimit_progress }}%" id="bumplimit_progress">
</div>
<div class="bar-text">
<span id="left_to_limit">{{ posts_left }}</span> {% trans 'posts to bumplimit' %}
</div>
</div>
{% endif %}
<div class="thread">
{% for post in thread.get_replies %}
{% post_view post moderator=moderator reply_link=True %}
{% endfor %}
</div>
{% if not thread.archived %}
<div class="post-form-w">
<script src="{% static 'js/panel.js' %}"></script>
<div class="form-title">{% trans "Reply to thread" %} #{{ opening_post.id }}</div>
<div class="post-form" id="compact-form">
<div class="swappable-form-full">
<form enctype="multipart/form-data" method="post" id="form">{% csrf_token %}
<div class="compact-form-text"></div>
{{ form.as_div }}
<div class="form-submit">
<input type="submit" value="{% trans "Post" %}"/>
</div>
(ctrl-enter)
</form>
</div>
<div><a href="{% url "staticpage" name="help" %}">
{% trans 'Text syntax' %}</a></div>
<div><a href="#" onClick="resetFormPosition(); return false;">{% trans 'Close form' %}</a></div>
</div>
</div>
<script src="{% static 'js/jquery.form.min.js' %}"></script>
{% endif %}
<script src="{% static 'js/form.js' %}"></script>
<script src="{% static 'js/thread.js' %}"></script>
<script src="{% static 'js/thread_update.js' %}"></script>
<script src="{% static 'js/3party/centrifuge.js' %}"></script>
{% endcache %}
{% endblock %}
{% block thread_meta_panel %}
<button id="autoupdate">{% trans 'Update' %}</button>
{% endblock %}