|
@@ -88,11 +88,7 @@
|
|
<span class="post-author">{{ post.user_name }}</span> <span class="label post-author-label post-label-guest">{% trans %}Unregistered{% endtrans %}</span>
|
|
<span class="post-author">{{ post.user_name }}</span> <span class="label post-author-label post-label-guest">{% trans %}Unregistered{% endtrans %}</span>
|
|
{% endif %}
|
|
{% endif %}
|
|
<span class="separator">–</span>
|
|
<span class="separator">–</span>
|
|
- <a href="{% if pagination['page'] > 1 -%}
|
|
|
|
- {% url 'thread' thread=thread.pk, slug=thread.slug, page=pagination['page'] %}
|
|
|
|
- {%- else -%}
|
|
|
|
- {% url 'thread' thread=thread.pk, slug=thread.slug %}
|
|
|
|
- {%- endif %}#post-{{ post.pk }}" class="post-date">{{ post.date|reltimesince }}</a>
|
|
|
|
|
|
+ <a href="{% url 'thread_find' thread=thread.pk, slug=thread.slug, post=post.pk %}" class="post-date">{{ post.date|reltimesince }}</a>
|
|
{% if post.edits %}
|
|
{% if post.edits %}
|
|
<span class="separator">–</span>
|
|
<span class="separator">–</span>
|
|
{% if acl.threads.can_see_changelog(user, forum, post) %}
|
|
{% if acl.threads.can_see_changelog(user, forum, post) %}
|
|
@@ -103,11 +99,7 @@
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <a href="{% if pagination['page'] > 1 -%}
|
|
|
|
- {% url 'thread' thread=thread.pk, slug=thread.slug, page=pagination['page'] %}
|
|
|
|
- {%- else -%}
|
|
|
|
- {% url 'thread' thread=thread.pk, slug=thread.slug %}
|
|
|
|
- {%- endif %}#post-{{ post.pk }}" class="post-perma tooltip-left" title="{% trans %}Direct link to this post{% endtrans %}">#{{ pagination['start'] + loop.index }}</a>
|
|
|
|
|
|
+ <a href="{% url 'thread_find' thread=thread.pk, slug=thread.slug, post=post.pk %}" class="post-perma tooltip-left" title="{% trans %}Direct link to this post{% endtrans %}">#{{ pagination['start'] + loop.index }}</a>
|
|
|
|
|
|
{% if not post.is_read %}
|
|
{% if not post.is_read %}
|
|
<div class="post-extra">
|
|
<div class="post-extra">
|
|
@@ -130,18 +122,10 @@
|
|
<div class="post-content">
|
|
<div class="post-content">
|
|
<div class="post-header">
|
|
<div class="post-header">
|
|
<div class="post-header-compact">
|
|
<div class="post-header-compact">
|
|
- <a href="{% if pagination['page'] > 1 -%}
|
|
|
|
- {% url 'thread' thread=thread.pk, slug=thread.slug, page=pagination['page'] %}
|
|
|
|
- {%- else -%}
|
|
|
|
- {% url 'thread' thread=thread.pk, slug=thread.slug %}
|
|
|
|
- {%- endif %}#post-{{ post.pk }}" class="post-date">{{ post.date|reltimesince }}</a>
|
|
|
|
|
|
+ <a href="{% url 'thread_find' thread=thread.pk, slug=thread.slug, post=post.pk %}" class="post-date">{{ post.date|reltimesince }}</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <a href="{% if pagination['page'] > 1 -%}
|
|
|
|
- {% url 'thread' thread=thread.pk, slug=thread.slug, page=pagination['page'] %}
|
|
|
|
- {%- else -%}
|
|
|
|
- {% url 'thread' thread=thread.pk, slug=thread.slug %}
|
|
|
|
- {%- endif %}#post-{{ post.pk }}" class="post-perma tooltip-left" title="{% trans %}Direct link to this post{% endtrans %}">#{{ pagination['start'] + loop.index }}</a>
|
|
|
|
|
|
+ <a href="{% url 'thread_find' thread=thread.pk, slug=thread.slug, post=post.pk %}" class="post-perma tooltip-left" title="{% trans %}Direct link to this post{% endtrans %}">#{{ pagination['start'] + loop.index }}</a>
|
|
|
|
|
|
{% if not post.is_read %}
|
|
{% if not post.is_read %}
|
|
<div class="post-extra">
|
|
<div class="post-extra">
|
|
@@ -173,11 +157,7 @@
|
|
<span class="post-author">{{ post.user_name }}</span> <span class="label post-author-label post-label-guest">{% trans %}Unregistered{% endtrans %}</span>
|
|
<span class="post-author">{{ post.user_name }}</span> <span class="label post-author-label post-label-guest">{% trans %}Unregistered{% endtrans %}</span>
|
|
{% endif %}
|
|
{% endif %}
|
|
<span class="separator">–</span>
|
|
<span class="separator">–</span>
|
|
- <a href="{% if pagination['page'] > 1 -%}
|
|
|
|
- {% url 'thread' thread=thread.pk, slug=thread.slug, page=pagination['page'] %}
|
|
|
|
- {%- else -%}
|
|
|
|
- {% url 'thread' thread=thread.pk, slug=thread.slug %}
|
|
|
|
- {%- endif %}#post-{{ post.pk }}" class="post-date">{{ post.date|reltimesince }}</a>
|
|
|
|
|
|
+ <a href="{% url 'thread_find' thread=thread.pk, slug=thread.slug, post=post.pk %}" class="post-date">{{ post.date|reltimesince }}</a>
|
|
{% if post.edits %}
|
|
{% if post.edits %}
|
|
<span class="separator">–</span>
|
|
<span class="separator">–</span>
|
|
{% if acl.threads.can_see_changelog(user, forum, post) %}
|
|
{% if acl.threads.can_see_changelog(user, forum, post) %}
|
|
@@ -191,11 +171,7 @@
|
|
<label class="checkbox post-checkbox"><input form="posts_form" name="{{ posts_form['list_items']['html_name'] }}" type="checkbox" class="checkbox-member" value="{{ post.pk }}"{% if posts_form['list_items']['has_value'] and ('' ~ post.pk) in posts_form['list_items']['value'] %} checked="checked"{% endif %}></label>
|
|
<label class="checkbox post-checkbox"><input form="posts_form" name="{{ posts_form['list_items']['html_name'] }}" type="checkbox" class="checkbox-member" value="{{ post.pk }}"{% if posts_form['list_items']['has_value'] and ('' ~ post.pk) in posts_form['list_items']['value'] %} checked="checked"{% endif %}></label>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
|
|
- <a href="{% if pagination['page'] > 1 -%}
|
|
|
|
- {% url 'thread' thread=thread.pk, slug=thread.slug, page=pagination['page'] %}
|
|
|
|
- {%- else -%}
|
|
|
|
- {% url 'thread' thread=thread.pk, slug=thread.slug %}
|
|
|
|
- {%- endif %}#post-{{ post.pk }}" class="post-perma tooltip-left" title="{% trans %}Direct link to this post{% endtrans %}">#{{ pagination['start'] + loop.index }}</a>
|
|
|
|
|
|
+ <a href="{% url 'thread_find' thread=thread.pk, slug=thread.slug, post=post.pk %}" class="post-perma tooltip-left" title="{% trans %}Direct link to this post{% endtrans %}">#{{ pagination['start'] + loop.index }}</a>
|
|
|
|
|
|
<div class="post-extra">
|
|
<div class="post-extra">
|
|
{% if post.protected and acl.threads.can_protect(forum) %}
|
|
{% if post.protected and acl.threads.can_protect(forum) %}
|
|
@@ -401,7 +377,7 @@
|
|
{% if user.is_authenticated() and (thread_form or posts_form) %}
|
|
{% if user.is_authenticated() and (thread_form or posts_form) %}
|
|
<div class="thread-moderation">
|
|
<div class="thread-moderation">
|
|
{% if thread_form%}
|
|
{% if thread_form%}
|
|
- <form id="thread_form" class="form-inline pull-left" action="{% url 'thread' slug=thread.slug, thread=thread.id, page=pagination['page'] %}" method="POST">
|
|
|
|
|
|
+ <form id="thread_form" class="form-inline pull-left" action="{{ request_path }}" method="POST">
|
|
<input type="hidden" name="{{ csrf_id }}" value="{{ csrf_token }}">
|
|
<input type="hidden" name="{{ csrf_id }}" value="{{ csrf_token }}">
|
|
<input type="hidden" name="origin" value="thread_form">
|
|
<input type="hidden" name="origin" value="thread_form">
|
|
{{ form_theme.input_select(thread_form['thread_action'],width=3) }}
|
|
{{ form_theme.input_select(thread_form['thread_action'],width=3) }}
|
|
@@ -409,7 +385,7 @@
|
|
</form>
|
|
</form>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if posts_form%}
|
|
{% if posts_form%}
|
|
- <form id="posts_form" class="form-inline pull-right" action="{% url 'thread' slug=thread.slug, thread=thread.id, page=pagination['page'] %}" method="POST">
|
|
|
|
|
|
+ <form id="posts_form" class="form-inline pull-right" action="{{ request_path }}" method="POST">
|
|
<input type="hidden" name="{{ csrf_id }}" value="{{ csrf_token }}">
|
|
<input type="hidden" name="{{ csrf_id }}" value="{{ csrf_token }}">
|
|
<input type="hidden" name="origin" value="posts_form">
|
|
<input type="hidden" name="origin" value="posts_form">
|
|
{{ form_theme.input_select(posts_form['list_action'],width=3) }}
|
|
{{ form_theme.input_select(posts_form['list_action'],width=3) }}
|