fork download
  1. {% load static %}
  2. {% load board_tag %}
  3. <!DOCTYPE html>
  4. <html lang="en" xmlns="http://w...content-available-to-author-only...3.org/1999/html">
  5. <head>
  6. <meta charset="UTF-8">
  7. <title>Title</title>
  8. <link rel="stylesheet" type="text/css" href="{% static 'static/css/bootstrap.css' %}">
  9. <script src="{% static 'static/jQuery/jquery-3.1.1.js' %}"></script>
  10. <link rel="stylesheet" href="{% static 'static/lightbox/css/lightbox.css' %}">
  11. <script src="{% static 'static/lightbox/js/lightbox.js' %}"></script>
  12. <script src="{% static 'static/js/main.js' %}"></script>
  13. <link rel="stylesheet" type="text/css" href="{% static 'static/css/main.css' %}">
  14. <script src="https://c...content-available-to-author-only...e.com/ajax/libs/lodash.js/4.3.0/lodash.js"></script>
  15. <script type="text/template" id="template-thread">
  16. <div class="container container_board_index">
  17. <span>
  18. <% if (data[i].fields.thread_tittle != '') %> <b> <%= data[i].fields.thread_tittle %> </b>
  19. Аноним <%= data[i].fields.thread_time %>
  20. [ <a href="/{{ name_board }}/res/<%= data[i].pk %>.html" class="link_color_all">Ответ</a> ]
  21. </span><br>
  22. <% if (data[i].fields.thread_image != '') { %>
  23. <div class="container container_tittle_thread">
  24. <a href="/upload/<%= data[i].fields.thread_image %>" class="link_color_img"> <%= data[i].fields.thread_image %></a>
  25. </div>
  26. <a data-lightbox="image-1" href="/upload/<%= data[i].fields.thread_image %>">
  27. <img src="/upload/<%= data[i].fields.thread_image %>" width="16%" height="16%" align="left"/>
  28. </a>
  29. <% } %>
  30. <p><%= data[i].fields.thread_text %></p>
  31. <hr class="board">
  32. </div>
  33. </script>
  34. <script type="text/template" id="template-comment">
  35. <div class="container container_comments_index">
  36. <div class="container_comments">
  37. <span>
  38. <% if (data[y].fields.comments_tittle != '') %> <b> <%= data[y].fields.comments_tittle %> </b>
  39. Аноним <% if (data[y].fields.comments_op != '') %> <%= data[y].fields.comments_op %>
  40. <%= data[y].fields.comments_time %>
  41. </span><br>
  42. <% if (data[y].fields.comments_image != '') { %>
  43. <div class="container container_tittle_thread">
  44. <a href="/upload/<%= data[y].fields.comments_image %>" class="link_color_img"><%= data[y].fields.comments_image %></a>
  45. </div>
  46. <a data-lightbox="image-1" href="/upload/<%= data[y].fields.comments_image %>">
  47. <img src="/upload/<%= data[y].fields.comments_image %>" width="16%" height="16%" align="left">
  48. </a>
  49. <% } %>
  50. <p><%= data[y].fields.comments_text %></p>
  51. </div>
  52. </div>
  53. </script>
  54. <script type="text/template" id="template-tooltip">
  55. <span class="tooltip"><%= data[0].fields.comments_text %></span>
  56. </script>
  57. </head>
  58. <body>
  59.  
  60. <div class="navbar navbar-inverse navbar-static-top">
  61. <div class="container container_navbar">
  62. <a class="menu" href="{% url 'index' %}">Главная</a>
  63. <a class="menu" href="{% url 'contacts' %}">Контакты</a>
  64. </div>
  65. </div>
  66. <hr class="index">
  67. <div class="board_center_text">
  68. <h1><a class="mainlogo link_color_all" href="{% url 'board' name_board %}">{{ board.board_name }}</a></h1>
  69. </div>
  70. <hr>
  71. <div class="board_center_text">
  72. [ <a class="link_color_all" id="js_thr_1">Создать тред</a> ]
  73. </div>
  74. <div class="container container-form_1">
  75. <hr>
  76. <form enctype="multipart/form-data" method="post" action="{% url 'board' name_board %}" class="container-js_1">
  77. {% csrf_token %}
  78. <table>
  79. {% for x in form %}
  80. <tr>
  81. <td>{% cycle 'Имя треда' 'Текст' 'Файл' %}</td>
  82. <td>{{ x }} {% cycle '<input type="submit" class="button" value="Отправить">' '' '' %}</td>
  83. </tr>
  84. {% endfor %}
  85. </table>
  86. </form>
  87. </div>
  88. <div class="dynamic1">
  89. {% for thread in threads %}
  90. <div class="container container_board_index">
  91. <span> {% if thread.thread_tittle %}<b>{{ thread.thread_tittle }}</b>{% endif %} Аноним {{ thread.thread_time }} [ <a href="{% url 'thread' name_board thread.id %}" class="link_color_all">Ответ</a> ]</span><br>
  92. {% if thread.thread_image %}
  93. <div class="container container_tittle_thread">
  94. <a href="{{ thread.thread_image.url }}" class="link_color_img"> {{ thread.thread_image }}</a>
  95. </div>
  96. <a data-lightbox="image-1" href="{{ thread.thread_image.url }}">
  97. <img src="{{ thread.thread_image.url }}" width="16%" height="16%" align="left"/>
  98. </a>
  99. {% endif %}
  100. <p>{{ thread.thread_text }}</p>
  101. <hr class="board">
  102. </div>
  103. {% for comment in comments %}
  104. {% for x in comment %}
  105. {% if thread.id == x.thread_id %}
  106. <div class="container container_comments_index">
  107. <div class="container_comments">
  108. <span> {% if x.comments_tittle %}<b>{{ x.comments_tittle }}</b>{% endif %} Аноним
  109. {% if x.comments_op %}{{ x.comments_op }}{% endif %}{{ x.comments_time }}</span><br>
  110. {% if x.comments_image %}
  111. <div class="container container_tittle_thread">
  112. <a href="{{ x.comments_image.url }}" class="link_color_img">{{ x.comments_image }}</a>
  113. </div>
  114. <a data-lightbox="image-1" href="{{ x.comments_image.url }}">
  115. <img src="{{ x.comments_image.url }}" width="16%" height="16%" align="left">
  116. </a>
  117. {% endif %}
  118. <blockquote>{{ x.comments_text|safe|linebreaksbr }}</blockquote>
  119. {% if x.comments_answers %}
  120. <span>Ответы: {% for answer in x.comments_answers|make_mylist %}<a class="link-reply" data-num="{{ answer }}">>>{{ answer }} </a>{% endfor %}</span>
  121. {% endif %}
  122. </div>
  123. </div>
  124. {% if forloop.last %}
  125. <hr class="comments">
  126. {% endif %}
  127. {% endif %}
  128. {% endfor %}
  129. {% endfor %}
  130. {% endfor %}
  131. </div>
  132.  
  133. <div class="board_center_text">
  134. [ <a class="link_color_all" id="js_thr_2">Создать тред</a> ]
  135. </div>
  136. <div class="container container-form_2">
  137. <hr>
  138. <form enctype="multipart/form-data" method="post" action="{% url 'board' name_board %}" class="container-js_2">
  139. {% csrf_token %}
  140. <table>
  141. {% for x in form %}
  142. <tr>
  143. <td>{% cycle 'Имя треда' 'Текст' 'Файл' %}</td>
  144. <td>{{ x }} {% cycle '<input type="submit" class="button" value="Отправить">' '' '' %}</td>
  145. </tr>
  146. {% endfor %}
  147. </table>
  148. </form>
  149. </div>
  150. </body>
  151. </html>
  152.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty