##// END OF EJS Templates
Show OP name in post preview popup
Show OP name in post preview popup

File last commit:

r1396:52abbcde default
r1413:e7eaf003 default
Show More
thread_normal.html
75 lines | 3.1 KiB | text/html | HtmlLexer
{% extends "boards/thread.html" %}
{% load i18n %}
{% load static from staticfiles %}
{% load board %}
{% load tz %}
{% block thread_content %}
{% get_current_language as LANGUAGE_CODE %}
{% get_current_timezone as TIME_ZONE %}
<div class="tag_info">
<h2>
<form action="{% url 'thread' opening_post.id %}" method="post" class="post-button-form">
{% if is_favorite %}
<button name="method" value="unsubscribe" class="fav"></button>
{% else %}
<button name="method" value="subscribe" class="not_fav"></button>
{% endif %}
</form>
{{ opening_post.get_title_or_text }}
</h2>
</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 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 }}<span class="reply-to-message"> {% trans "to message " %} #<span id="reply-to-message-id"></span></span></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" %}"/>
<button id="preview-button" onclick="return false;">{% trans 'Preview' %}</button>
</div>
</form>
</div>
<div id="preview-text"></div>
<div>
{% with size=max_file_size|filesizeformat %}
{% blocktrans %}Max file size is {{ size }}.{% endblocktrans %}
{% endwith %}
</div>
<div><a href="{% url "staticpage" name="help" %}">
{% trans 'Text syntax' %}</a></div>
<div><a id="form-close-button" 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>
{% endblock %}