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 line
4.1KB

  1. {% filter remove_whitespace %}
  2. {# tabs and new lines will be ignored #}
  3. <div class="thread" id="thread_{{ post.id }}" data-board="{{ board.uri }}">
  4. {% if not index %}<a id="{{ post.id }}" class="post_anchor"></a>{% endif %}
  5. {% include 'post/fileinfo.html' %}
  6. <div class="post op" id="op_{{ post.id }}" {%if post.num_files > 1%}style='clear:both'{%endif%}><p class="intro">
  7. <input type="checkbox" class="delete" name="delete_{{ post.id }}" id="delete_{{ post.id }}" />
  8. <label for="delete_{{ post.id }}">
  9. {% include 'post/subject.html' %}
  10. {% include 'post/name.html' %}
  11. {% include 'post/ip.html' %}
  12. {% include 'post/flag.html' %}
  13. {% include 'post/time.html' %}
  14. </label>
  15. {% include 'post/poster_id.html' %}&nbsp;
  16. <a class="post_no" id="post_no_{{ post.id }}" onclick="highlightReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('', '50') }}{% else %}{{ post.link }}{% endif %}">No.</a>
  17. <a class="post_no" onclick="citeReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('q', '50') }}{% else %}{{ post.link('q') }}{% endif %}">{{ post.id }}</a>
  18. {% if post.sticky %}
  19. {% if config.font_awesome %}
  20. <i class="fa fa-thumb-tack" title="Sticky"></i>
  21. {% else %}
  22. <img class="icon" title="Sticky" src="{{ config.image_sticky }}" alt="Sticky" />
  23. {% endif %}
  24. {% endif %}
  25. {% if post.locked %}
  26. {% if config.font_awesome %}
  27. <i class="fa fa-lock" title="Locked"></i>
  28. {% else %}
  29. <img class="icon" title="Locked" src="{{ config.image_locked }}" alt="Locked" />
  30. {% endif %}
  31. {% endif %}
  32. {% if post.bumplocked and (config.mod.view_bumplock < 0 or (post.mod and post.mod|hasPermission(config.mod.view_bumplock, board.uri))) %}
  33. {% if config.font_awesome %}
  34. <i class="fa fa-anchor" title="Bumplocked"></i>
  35. {% else %}
  36. <img class="icon" title="Bumplocked" src="{{ config.image_bumplocked }}" alt="Bumplocked" />
  37. {% endif %}
  38. {% endif %}
  39. {% if post.cycle %}
  40. {% if config.font_awesome %}
  41. <i class="fa fa-refresh" title="Cyclical"></i>
  42. {% else %}
  43. <img class="icon" title="Cyclical" src="{{ config.image_sticky }}" alt="Cyclical" />
  44. {% endif %}
  45. {% endif %}
  46. {% if index %}
  47. <a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ link_for(post) }}">[{% trans %}Reply{% endtrans %}]</a>
  48. {% endif %}
  49. {% if isnoko50 %}
  50. <a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ link_for(post) }}">[{% trans %}View All{% endtrans %}]</a>
  51. {% endif %}
  52. {% if hasnoko50 and not isnoko50 %}
  53. {% set lastcount = config.noko50_count %}
  54. <a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ link_for(post, true) }}">[{% trans %}Last 1 Post{% plural lastcount %}Last {{ count }} Posts{% endtrans %}]</a>
  55. {% endif %}
  56. {% include 'post/post_controls.html' %}
  57. </p>
  58. <div class="body">
  59. {% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}
  60. {% if post.modifiers['ban message'] %}
  61. {{ config.mod.ban_message|sprintf(post.modifiers['ban message']) }}
  62. {% endif %}
  63. {% if post.modifiers['warning message'] %}
  64. {{ config.mod.warning_message|sprintf(post.modifiers['warning message']) }}
  65. {% endif %}
  66. </div>
  67. {% if post.omitted or post.omitted_images %}
  68. <span class="omitted">
  69. {% if post.omitted %}
  70. {% trans %}
  71. 1 post
  72. {% plural post.omitted %}
  73. {{ count }} posts
  74. {% endtrans %}
  75. {% if post.omitted_images %}
  76. {% trans %}and{% endtrans %}
  77. {% endif %}
  78. {% endif %}
  79. {% if post.omitted_images %}
  80. {% trans %}
  81. 1 image reply
  82. {% plural post.omitted_images %}
  83. {{ count }} image replies
  84. {% endtrans %}
  85. {% endif %} {% trans %}omitted. Click reply to view.{% endtrans %}
  86. </span>
  87. {% endif %}
  88. {% if not index %}
  89. {% endif %}
  90. </div>{% endfilter %}
  91. {% set iparray = [post.ip] %}
  92. {% set hr = post.hr %}
  93. {% for post in post.posts %}
  94. {% if post.ip not in iparray %}
  95. {% set iparray = iparray|merge([post.ip]) %}
  96. {% endif %}
  97. {% include 'post_reply.html' %}
  98. {% endfor %}
  99. {% if mod and not index %}
  100. <div id="uniqueip"><span style="display: block; float: left;">Unique IPs: {{ iparray|length }} </span></div>
  101. {% endif %}
  102. <br class="clear"/>{% if hr %}<hr/>{% endif %}
  103. </div>