The version of vichan running on lainchan.org
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

219 lines
6.8KB

  1. <ul>
  2. {% for board in boards %}
  3. <li>
  4. <a href="?/{{ config.board_path|sprintf(board.uri) }}{{ config.file_index }}">{{ config.board_abbreviation|sprintf(board.uri) }}</a>
  5. -
  6. {{ board.title|e }}
  7. {% if board.subtitle %}
  8. <small>&mdash;
  9. {% if config.allow_subtitle_html %}
  10. {{ board.subtitle }}
  11. {% else %}
  12. {{ board.subtitle|e }}
  13. {% endif %}
  14. </small>
  15. {% endif %}
  16. {% if mod|hasPermission(config.mod.manageboards) %}
  17. <a href="?/edit/{{ board.uri }}"><small>[{% trans 'edit' %}]</small></a>
  18. {% endif %}
  19. </li>
  20. {% endfor %}
  21. {% if mod|hasPermission(config.mod.newboard) %}
  22. <li style="margin-top:15px"><a href="?/new-board"><strong>{% trans 'Create new board' %}</strong></a></li>
  23. {% endif %}
  24. {% if mod|hasPermission(config.mod.reports) %}
  25. <li>
  26. {% if reports > 0 %}<strong>{% endif %}
  27. <a href="?/reports">{% trans 'Report queue' %} ({{ reports }})</a>
  28. {% if reports > 0 %}</strong>{% endif %}
  29. </li>
  30. {% endif %}
  31. {% if mod|hasPermission(config.mod.view_banlist) %}
  32. <li><a href="?/bans">{% trans 'Ban list' %}</a></li>
  33. {% endif %}
  34. {% if config.ban_appeals and mod|hasPermission(config.mod.view_ban_appeals) %}
  35. <li><a href="?/ban-appeals">{% trans 'Ban appeals' %}</a></li>
  36. {% endif %}
  37. {% if mod|hasPermission(config.mod.manageusers) %}
  38. <li><a href="?/users">{% trans 'Manage users' %}</a></li>
  39. {% elseif mod|hasPermission(config.mod.change_password) %}
  40. <li><a href="?/users/{{ mod.id }}">{% trans 'Change password' %}</a></li>
  41. {% endif %}
  42. {% if mod|hasPermission(config.mod.themes) %}
  43. <li><a href="?/themes">{% trans 'Manage themes' %}</a></li>
  44. {% endif %}
  45. {% if mod|hasPermission(config.mod.modlog) %}
  46. <li><a href="?/log">{% trans 'Moderation log' %}</a></li>
  47. {% endif %}
  48. {% if mod|hasPermission(config.mod.recent) %}
  49. <li><a href="?/recent/25">{% trans 'Recent posts' %}</a></li>
  50. {% endif %}
  51. {% if mod|hasPermission(config.mod.rebuild) %}
  52. <li><a href="?/rebuild">{% trans 'Rebuild' %}</a></li>
  53. {% endif %}
  54. {% if mod|hasPermission(config.mod.edit_config) %}
  55. <li><a href="?/config">{% trans 'Configuration' %}</a></li>
  56. {% endif %}
  57. =======
  58. <fieldset>
  59. <legend>{% trans 'Boards' %}</legend>
  60. <ul>
  61. {% for board in boards %}
  62. <li>
  63. <a href="?/{{ config.board_path|sprintf(board.uri) }}{{ config.file_index }}">{{ config.board_abbreviation|sprintf(board.uri) }}</a>
  64. -
  65. {{ board.title|e }}
  66. {% if board.subtitle %}
  67. <small>&mdash;
  68. {% if config.allow_subtitle_html %}
  69. {{ board.subtitle }}
  70. {% else %}
  71. {{ board.subtitle|e }}
  72. {% endif %}
  73. </small>
  74. {% endif %}
  75. {% if mod|hasPermission(config.mod.manageboards) %}
  76. <a href="?/edit/{{ board.uri }}"><small>[{% trans 'edit' %}]</small></a>
  77. {% endif %}
  78. {% if mod|hasPermission(config.mod.edit_pages) %}
  79. <a href="?/edit_pages/{{ board.uri }}"><small>[{% trans 'pages' %}]</small></a>
  80. {% endif %}
  81. </li>
  82. {% endfor %}
  83. {% if mod|hasPermission(config.mod.newboard) %}
  84. <li style="margin-top:15px"><a href="?/new-board"><strong>{% trans 'Create new board' %}</strong></a></li>
  85. {% endif %}
  86. </ul>
  87. </fieldset>
  88. <fieldset>
  89. <legend>{% trans 'Messages' %}</legend>
  90. <ul>
  91. {% if mod|hasPermission(config.mod.noticeboard) %}
  92. {% if noticeboard|count > 0 %}
  93. <li>
  94. {% trans 'Noticeboard' %}:
  95. <ul>
  96. {% for post in noticeboard %}
  97. <li>
  98. <a href="?/noticeboard#{{ post.id }}">
  99. {% if post.subject %}
  100. {{ post.subject|e }}
  101. {% else %}
  102. <em>{% trans 'no subject' %}</em>
  103. {% endif %}
  104. </a>
  105. <small class="unimportant">
  106. &mdash; by
  107. {% if post.username %}
  108. {{ post.username|e }}
  109. {% else %}
  110. <em>deleted?</em>
  111. {% endif %}
  112. at
  113. {{ post.time|date(config.post_date) }}
  114. </small>
  115. </li>
  116. {% endfor %}
  117. </ul>
  118. </li>
  119. {% endif %}
  120. <li><a href="?/noticeboard">{% trans 'View all noticeboard entries' %}</a></li>
  121. {% endif %}
  122. <li><a href="?/edit_news">{% trans 'News' %}</a></li>
  123. <li>
  124. <a href="?/inbox">
  125. {% trans 'PM inbox' %}
  126. {% if unread_pms > 0 %}<strong>{%endif %}({{ unread_pms }} unread){% if unread_pms > 0 %}</strong>{%endif %}
  127. </a>
  128. </li>
  129. </ul>
  130. </fieldset>
  131. <fieldset>
  132. <legend>{% trans 'Administration' %}</legend>
  133. <ul>
  134. {% if mod|hasPermission(config.mod.reports) %}
  135. <li>
  136. {% if reports > 0 %}<strong>{% endif %}
  137. <a href="?/reports">{% trans 'Report queue' %} ({{ reports }})</a>
  138. {% if reports > 0 %}</strong>{% endif %}
  139. </li>
  140. {% endif %}
  141. {% if mod|hasPermission(config.mod.view_banlist) %}
  142. <li><a href="?/bans">{% trans 'Ban list' %}</a></li>
  143. {% endif %}
  144. {% if config.ban_appeals and mod|hasPermission(config.mod.view_ban_appeals) %}
  145. <li><a href="?/ban-appeals">{% trans 'Ban appeals' %}</a></li>
  146. {% endif %}
  147. {% if mod|hasPermission(config.mod.manageusers) %}
  148. <li><a href="?/users">{% trans 'Manage users' %}</a></li>
  149. {% elseif mod|hasPermission(config.mod.change_password) %}
  150. <li><a href="?/users/{{ mod.id }}">{% trans 'Change password' %}</a></li>
  151. {% endif %}
  152. {% if mod|hasPermission(config.mod.themes) %}
  153. <li><a href="?/themes">{% trans 'Manage themes' %}</a></li>
  154. {% endif %}
  155. {% if mod|hasPermission(config.mod.modlog) %}
  156. <li><a href="?/log">{% trans 'Moderation log' %}</a></li>
  157. {% endif %}
  158. {% if mod|hasPermission(config.mod.edit_pages) %}
  159. <li><a href="?/edit_pages">{% trans 'Global static pages' %}</a></li>
  160. {% endif %}
  161. {% if mod|hasPermission(config.mod.recent) %}
  162. <li><a href="?/recent/25">{% trans 'Recent posts' %}</a></li>
  163. {% endif %}
  164. {% if mod|hasPermission(config.mod.rebuild) %}
  165. <li><a href="?/rebuild">{% trans 'Rebuild' %}</a></li>
  166. {% endif %}
  167. {% if mod|hasPermission(config.mod.edit_config) %}
  168. <li><a href="?/config">{% trans 'Configuration' %}</a></li>
  169. {% endif %}
  170. </ul>
  171. </fieldset>
  172. {% if mod|hasPermission(config.mod.search) %}
  173. <li>
  174. {% include 'mod/search_form.html' %}
  175. </li>
  176. {% endif %}
  177. {% if config.mod.dashboard_links|count %}
  178. {% for label,link in config.mod.dashboard_links %}
  179. <li><a href="{{ link }}">{{ label }}</a></li>
  180. {% endfor %}
  181. {% endif %}
  182. {% if config.debug %}
  183. <li><a href="?/debug/antispam">{% trans 'Anti-spam' %}</a></li>
  184. <li><a href="?/debug/recent">{% trans 'Recent posts' %}</a></li>
  185. {% if mod|hasPermission(config.mod.debug_sql) %}
  186. <li><a href="?/debug/sql">{% trans 'SQL' %}</a></li>
  187. {% endif %}
  188. {% endif %}
  189. {% if newer_release %}
  190. <li>
  191. A newer version of vichan
  192. (<strong>v{{ newer_release.massive }}.{{ newer_release.major }}.{{ newer_release.minor }}</strong>) is available!
  193. See <a href="https://engine.vichan.net">https://engine.vichan.net/</a> for upgrade instructions.
  194. </li>
  195. {% endif %}
  196. <li><a href="?/logout/{{ logout_token }}">{% trans 'Logout' %}</a></li>
  197. </ul>