forked from leftypol/leftypol
Fix post-filter, remove lainchan postcontainer
This commit is contained in:
parent
52cd74a01d
commit
0806e39c03
3 changed files with 29 additions and 31 deletions
|
@ -248,7 +248,7 @@ $(document).ready(function(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($("div.post").length > 1){
|
if ($("div.post").length > 1){
|
||||||
$(this).parent().insertAfter($('div.post:not(.post-hover):last').parent().next()).after('<br class="clear">');
|
$(this).insertAfter($('div.post:not(.post-hover):last').next()).after('<br class="clear">');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$(this).insertAfter($('div.post:not(.post-hover):last')).after('<br class="clear">');
|
$(this).insertAfter($('div.post:not(.post-hover):last')).after('<br class="clear">');
|
||||||
|
|
|
@ -228,7 +228,7 @@ if (active_page === 'thread' || active_page === 'index' || active_page === 'cata
|
||||||
var ele = e.target.parentElement.parentElement;
|
var ele = e.target.parentElement.parentElement;
|
||||||
var $ele = $(ele);
|
var $ele = $(ele);
|
||||||
|
|
||||||
var threadId = $ele.parent().attr('id').replace('thread_', '');
|
var threadId = $ele.parent('.thread').attr('id').replace('thread_', '');
|
||||||
var boardId = $ele.parent().data('board');
|
var boardId = $ele.parent().data('board');
|
||||||
var postId = $ele.find('.post_no').not('[id]').text();
|
var postId = $ele.find('.post_no').not('[id]').text();
|
||||||
if (pageData.hasUID) {
|
if (pageData.hasUID) {
|
||||||
|
@ -608,7 +608,7 @@ if (active_page === 'thread' || active_page === 'index' || active_page === 'cata
|
||||||
'#filter-list th:nth-child(2) {text-align: left;}\n' +
|
'#filter-list th:nth-child(2) {text-align: left;}\n' +
|
||||||
'#filter-list th:nth-child(3) {text-align: center; width: 58px;}\n' +
|
'#filter-list th:nth-child(3) {text-align: center; width: 58px;}\n' +
|
||||||
'#filter-list tr:not(#header) {height: 22px;}\n' +
|
'#filter-list tr:not(#header) {height: 22px;}\n' +
|
||||||
'#filter-list tr:nth-child(even) {background-color:rgba(255, 255, 255, 0.5);}\n' +
|
'#filter-list tr:nth-child(even) {background-color:rgba(255, 255, 255, 0.2);}\n' +
|
||||||
'#filter-list td:nth-child(1) {text-align: center; width: 70px;}\n' +
|
'#filter-list td:nth-child(1) {text-align: center; width: 70px;}\n' +
|
||||||
'#filter-list td:nth-child(3) {text-align: center; width: 58px;}\n' +
|
'#filter-list td:nth-child(3) {text-align: center; width: 58px;}\n' +
|
||||||
'#confirm {text-align: right; margin-bottom: -18px; padding-top: 2px; font-size: 14px; color: #FF0000;}';
|
'#confirm {text-align: right; margin-bottom: -18px; padding-top: 2px; font-size: 14px; color: #FF0000;}';
|
||||||
|
|
|
@ -1,33 +1,31 @@
|
||||||
{% filter remove_whitespace %}
|
{% filter remove_whitespace %}
|
||||||
{# tabs and new lines will be ignored #}
|
{# tabs and new lines will be ignored #}
|
||||||
<div class="postcontainer" id="pc{{ post.id }}" data-board="{{ board.uri }}">
|
<div class="post reply" id="reply_{{ post.id }}" data-board="{{ board.uri }}">
|
||||||
<div class="sidearrows">>></div>
|
<p class="intro">
|
||||||
<div class="post reply" id="reply_{{ post.id }}">
|
{% if not index %}<a id="{{ post.id }}" class="post_anchor"></a>{% endif %}
|
||||||
<p class="intro">
|
<input type="checkbox" class="delete" name="delete_{{ post.id }}" id="delete_{{ post.id }}" />
|
||||||
{% if not index %}<a id="{{ post.id }}" class="post_anchor"></a>{% endif %}
|
<label for="delete_{{ post.id }}">
|
||||||
<input type="checkbox" class="delete" name="delete_{{ post.id }}" id="delete_{{ post.id }}" />
|
{% include 'post/subject.html' %}
|
||||||
<label for="delete_{{ post.id }}">
|
{% include 'post/name.html' %}
|
||||||
{% include 'post/subject.html' %}
|
{% include 'post/ip.html' %}
|
||||||
{% include 'post/name.html' %}
|
{% include 'post/flag.html' %}
|
||||||
{% include 'post/ip.html' %}
|
{% include 'post/time.html' %}
|
||||||
{% include 'post/flag.html' %}
|
</label>
|
||||||
{% include 'post/time.html' %}
|
{% include 'post/poster_id.html' %}
|
||||||
</label>
|
<a class="post_no" id="post_no_{{ post.id }}" onclick="highlightReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('', config.file_page50) }}{% else %}{{ post.link }}{% endif %}">No.</a>
|
||||||
{% include 'post/poster_id.html' %}
|
<a class="post_no" onclick="citeReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('q', config.file_page50) }}{% else %}{{ post.link('q') }}{% endif %}">{{ post.id }}</a>
|
||||||
<a class="post_no" id="post_no_{{ post.id }}" onclick="highlightReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('', config.file_page50) }}{% else %}{{ post.link }}{% endif %}">No.</a>
|
</p>
|
||||||
<a class="post_no" onclick="citeReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('q', config.file_page50) }}{% else %}{{ post.link('q') }}{% endif %}">{{ post.id }}</a>
|
{% include 'post/fileinfo.html' %}
|
||||||
</p>
|
{% include 'post/post_controls.html' %}
|
||||||
{% include 'post/fileinfo.html' %}
|
<div class="body" {% if post.files|length > 1 %}style="clear:both"{% endif %}>
|
||||||
{% include 'post/post_controls.html' %}
|
{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}
|
||||||
<div class="body" {% if post.files|length > 1 %}style="clear:both"{% endif %}>
|
{% if post.modifiers['ban message'] %}
|
||||||
{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}
|
{{ config.mod.ban_message|sprintf(post.modifiers['ban message']) }}
|
||||||
{% if post.modifiers['ban message'] %}
|
{% endif %}
|
||||||
{{ config.mod.ban_message|sprintf(post.modifiers['ban message']) }}
|
{% if post.modifiers['warning message'] %}
|
||||||
{% endif %}
|
{{ config.mod.warning_message|sprintf(post.modifiers['warning message']) }}
|
||||||
{% if post.modifiers['warning message'] %}
|
{% endif %}
|
||||||
{{ config.mod.warning_message|sprintf(post.modifiers['warning message']) }}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</br>
|
||||||
{% endfilter %}
|
{% endfilter %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue