mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 01:10:51 +01:00
Show stickies at top of catalog
This commit is contained in:
parent
e8b530a783
commit
dd27026618
@ -28,7 +28,7 @@ if (active_page == 'catalog') $(function(){
|
|||||||
|
|
||||||
$("#sort_by").change(function(){
|
$("#sort_by").change(function(){
|
||||||
var value = this.value;
|
var value = this.value;
|
||||||
$('#Grid').mixItUp('sort', value);
|
$('#Grid').mixItUp('sort', (value == "random" ? value : "sticky:desc " + value));
|
||||||
catalog.sort_by = value;
|
catalog.sort_by = value;
|
||||||
localStorage.catalog = JSON.stringify(catalog);
|
localStorage.catalog = JSON.stringify(catalog);
|
||||||
});
|
});
|
||||||
@ -46,7 +46,7 @@ if (active_page == 'catalog') $(function(){
|
|||||||
$('#Grid').mixItUp({
|
$('#Grid').mixItUp({
|
||||||
animation: {
|
animation: {
|
||||||
enable: false
|
enable: false
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (catalog.sort_by !== undefined) {
|
if (catalog.sort_by !== undefined) {
|
||||||
|
@ -38,6 +38,8 @@
|
|||||||
data-bump="{{ post.bump }}"
|
data-bump="{{ post.bump }}"
|
||||||
data-time="{{ post.time }}"
|
data-time="{{ post.time }}"
|
||||||
data-id="{{ post.id }}"
|
data-id="{{ post.id }}"
|
||||||
|
data-sticky="{% if post.sticky %}true{% else %}false{% endif %}"
|
||||||
|
data-locked="{% if post.locked %}true{% else %}false{% endif %}"
|
||||||
>
|
>
|
||||||
<div class="thread grid-li grid-size-small">
|
<div class="thread grid-li grid-size-small">
|
||||||
<a href="{{post.link}}">
|
<a href="{{post.link}}">
|
||||||
@ -49,7 +51,7 @@
|
|||||||
id="img-{{ post.id }}" data-subject="{% if post.subject %}{{ post.subject|e }}{% endif %}" data-name="{{ post.name|e }}" data-muhdifference="{{ post.muhdifference }}" class="{{post.board}} thread-image" title="{{post.bump|date('%b %d %H:%M')}}">
|
id="img-{{ post.id }}" data-subject="{% if post.subject %}{{ post.subject|e }}{% endif %}" data-name="{{ post.name|e }}" data-muhdifference="{{ post.muhdifference }}" class="{{post.board}} thread-image" title="{{post.bump|date('%b %d %H:%M')}}">
|
||||||
</a>
|
</a>
|
||||||
<div class="replies">
|
<div class="replies">
|
||||||
<strong>R: {{ post.reply_count }} / I: {{ post.image_count }}</strong>
|
<strong>R: {{ post.reply_count }} / I: {{ post.image_count }}{% if post.sticky %} (sticky){% endif %}</strong>
|
||||||
{% if post.subject %}
|
{% if post.subject %}
|
||||||
<p class="intro">
|
<p class="intro">
|
||||||
<span class="subject">
|
<span class="subject">
|
||||||
|
Loading…
Reference in New Issue
Block a user