A bit more consistent formatting in catalog template

This commit is contained in:
Matěj Grabovský 2015-03-26 21:39:01 +01:00
parent db5e8341ef
commit 282584e035
2 changed files with 59 additions and 58 deletions

View File

@ -18,63 +18,64 @@
<div class="subtitle">{{ settings.subtitle }}</div> <div class="subtitle">{{ settings.subtitle }}</div>
</header> </header>
<ul style="display: none"> <ul style="display: none">
<li id="sort-bump-order" class="sort" data-sort="data-bump" data-order="asc">{% trans 'Bump order' %}</li> <li id="sort-bump-order" class="sort" data-sort="data-bump" data-order="asc">{% trans 'Bump order' %}</li>
<li id="sort-creation-date" class="sort" data-sort="data-time" data-order="asc">{% trans 'Creation date' %}</li> <li id="sort-creation-date" class="sort" data-sort="data-time" data-order="asc">{% trans 'Creation date' %}</li>
<li id="sort-reply-count" class="sort" data-sort="data-reply" data-order="asc">{% trans 'Reply count' %}</li> <li id="sort-reply-count" class="sort" data-sort="data-reply" data-order="asc">{% trans 'Reply count' %}</li>
<li id="sort-random" class="sort" data-sort="random">{% trans 'Random' %}</li> <li id="sort-random" class="sort" data-sort="random">{% trans 'Random' %}</li>
</ul> </ul>
<span>{% trans 'Sort by' %}: </span> <span>{% trans 'Sort by' %}: </span>
<select id="sort_by" style="display: inline-block"> <select id="sort_by" style="display: inline-block">
<option selected value="bump-order">{% trans 'Bump order' %}</option> <option selected value="bump-order">{% trans 'Bump order' %}</option>
<option value="creation-date">{% trans 'Creation date' %}</option> <option value="creation-date">{% trans 'Creation date' %}</option>
<option value="reply-count">{% trans 'Reply count' %}</option> <option value="reply-count">{% trans 'Reply count' %}</option>
<option value="random">{% trans 'Random' %}</option> <option value="random">{% trans 'Random' %}</option>
</select> </select>
<span>{% trans 'Image size' %}: </span> <span>{% trans 'Image size' %}: </span>
<select id="image_size" style="display: inline-block"> <select id="image_size" style="display: inline-block">
<option value="vsmall">{% trans 'Very small' %}</option> <option value="vsmall">{% trans 'Very small' %}</option>
<option selected value="small">{% trans 'Small' %}</option> <option selected value="small">{% trans 'Small' %}</option>
<option value="large">{% trans 'Large' %}</option> <option value="large">{% trans 'Large' %}</option>
</select> </select>
<div class="threads">
<ul id="Grid"> <div class="threads">
{% for post in recent_posts %} <ul id="Grid">
<li class="mix" {% for post in recent_posts %}
<li class="mix"
data-reply="{{ post.reply_count }}" data-reply="{{ post.reply_count }}"
data-bump="{{ post.bump }}" data-bump="{{ post.bump }}"
data-time="{{ post.time }}" data-time="{{ post.time }}"
> >
<div class="thread grid-li grid-size-small"> <div class="thread grid-li grid-size-small">
<a href="{{post.link}}"> <a href="{{post.link}}">
{% if post.youtube %} {% if post.youtube %}
<img src="http://img.youtube.com/vi/{{ post.youtube }}/0.jpg" <img src="http://img.youtube.com/vi/{{ post.youtube }}/0.jpg"
{% else %} {% else %}
<img src="{{post.file}}" <img src="{{post.file}}"
{% endif %} {% endif %}
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 }}</strong>
{% if post.subject %} {% if post.subject %}
<p class="intro"> <p class="intro">
<span class="subject"> <span class="subject">
{{ post.subject|e }} {{ post.subject|e }}
</span> </span>
</p> </p>
{% else %} {% else %}
<br /> <br />
{% endif %} {% endif %}
{{ post.body }} {{ post.body }}
</div> </div>
</div> </div>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
<hr/> <hr/>
<footer> <footer>
@ -83,9 +84,9 @@
<br><a href="http://tinyboard.org/">Tinyboard</a> Copyright &copy; 2010-2014 Tinyboard Development Group <br><a href="http://tinyboard.org/">Tinyboard</a> Copyright &copy; 2010-2014 Tinyboard Development Group
<br><a href="https://int.vichan.net/devel/">vichan</a> Copyright &copy; 2012-2014 vichan-devel</p> <br><a href="https://int.vichan.net/devel/">vichan</a> Copyright &copy; 2012-2014 vichan-devel</p>
</footer> </footer>
<script type="text/javascript"> <script type="text/javascript">
ready(); ready();
</script> </script>
</body> </body>
</html> </html>
{% endfilter %} {% endfilter %}