The version of vichan running on lainchan.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
4.4KB

  1. {% filter remove_whitespace %}
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  6. <script type='text/javascript'>
  7. var active_page = "catalog"
  8. , board_name = "{{ board }}";
  9. </script>
  10. {% include 'header.html' %}
  11. </head>
  12. <body class="8chan vichan {% if mod %}is-moderator{% else %}is-not-moderator{% endif %} theme-catalog active-catalog" data-stylesheet="{% if config.default_stylesheet.1 != '' %}{{ config.default_stylesheet.1 }}{% else %}default{% endif %}">
  13. <div class="top bar topbar">
  14. {{ boardlist.top }}
  15. </div>
  16. <header>
  17. <h1>{{ settings.title }} (<a href="{{link}}">/{{ board }}/</a>)</h1>
  18. <div class="subtitle">{{ settings.subtitle }}</div>
  19. </header>
  20. <div class="controls">
  21. <ul style="display: none">
  22. <li id="sort-bump-order" class="sort" data-sort="data-bump" data-order="asc">{% trans 'Bump order' %}</li>
  23. <li id="sort-creation-date" class="sort" data-sort="data-time" data-order="asc">{% trans 'Creation date' %}</li>
  24. <li id="sort-reply-count" class="sort" data-sort="data-reply" data-order="asc">{% trans 'Reply count' %}</li>
  25. <li id="sort-random" class="sort" data-sort="random">{% trans 'Random' %}</li>
  26. </ul>
  27. <span>{% trans 'Sort by' %}: </span>
  28. <select id="sort_by" style="display: inline-block">
  29. <option selected value="bump-order">{% trans 'Bump order' %}</option>
  30. <option value="creation-date">{% trans 'Creation date' %}</option>
  31. <option value="reply-count">{% trans 'Reply count' %}</option>
  32. <option value="random">{% trans 'Random' %}</option>
  33. </select>
  34. <span>{% trans 'Image size' %}: </span>
  35. <select id="image_size" style="display: inline-block">
  36. <option value="vsmall">{% trans 'Very small' %}</option>
  37. <option selected value="small">{% trans 'Small' %}</option>
  38. <option value="large">{% trans 'Large' %}</option>
  39. </select>
  40. </div>
  41. <div class="threads">
  42. <div id="Grid">
  43. {% for post in recent_posts %}
  44. <div class="mix"
  45. data-reply="{{ post.reply_count }}"
  46. data-bump="{{ post.bump }}"
  47. data-time="{{ post.time }}"
  48. data-id="{{ post.id }}"
  49. data-sticky="{% if post.sticky %}true{% else %}false{% endif %}"
  50. data-locked="{% if post.locked %}true{% else %}false{% endif %}"
  51. >
  52. <div class="thread grid-li grid-size-small">
  53. <a href="{{post.link}}">
  54. {% if post.youtube %}
  55. <img src="//img.youtube.com/vi/{{ post.youtube }}/0.jpg"
  56. {% else %}
  57. <img src="{{post.file}}"
  58. {% endif %}
  59. 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')}}">
  60. </a>
  61. <div class="replies">
  62. <strong>R: {{ post.reply_count }} / I: {{ post.image_count }}{% if post.sticky %} (sticky){% endif %}</strong>
  63. {% if post.subject %}
  64. <p class="intro">
  65. <span class="subject">
  66. {{ post.subject|e }}
  67. </span>
  68. </p>
  69. {% else %}
  70. <br />
  71. {% endif %}
  72. {{ post.body }}
  73. </div>
  74. </div>
  75. </div>
  76. {% endfor %}
  77. </div>
  78. </div>
  79. <hr/>
  80. <footer>
  81. <p class="unimportant" style="margin-top:20px;text-align:center;">- <a href="http://tinyboard.org/">Tinyboard</a> +
  82. <a href='https://int.vichan.net/devel/'>vichan</a> {{ config.version }} -
  83. <br><a href="http://tinyboard.org/">Tinyboard</a> Copyright &copy; 2010-2014 Tinyboard Development Group
  84. <br><a href="https://engine.vichan.net/">vichan</a> Copyright &copy; 2012-2015 vichan-devel</p>
  85. </footer>
  86. <script type="text/javascript">{% raw %}
  87. var styles = {
  88. {% endraw %}
  89. {% for name, uri in config.stylesheets %}{% raw %}'{% endraw %}{{ name|addslashes }}{% raw %}' : '{% endraw %}/stylesheets/{{ uri|addslashes }}{% raw %}',
  90. {% endraw %}{% endfor %}{% raw %}
  91. }; onready(init);
  92. {% endraw %}</script>
  93. <script type="text/javascript">{% raw %}
  94. ready();
  95. {% endraw %}</script>
  96. </body>
  97. </html>
  98. {% endfilter %}