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.

98 lines
3.1KB

  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. {% if mod|hasPermission(config.mod.search) %}
  58. <li>
  59. {% include 'mod/search_form.html' %}
  60. </li>
  61. {% endif %}
  62. {% if config.mod.dashboard_links|count %}
  63. {% for label,link in config.mod.dashboard_links %}
  64. <li><a href="{{ link }}">{{ label }}</a></li>
  65. {% endfor %}
  66. {% endif %}
  67. {% if config.debug %}
  68. <li><a href="?/debug/antispam">{% trans 'Anti-spam' %}</a></li>
  69. <li><a href="?/debug/recent">{% trans 'Recent posts' %}</a></li>
  70. {% if mod|hasPermission(config.mod.debug_sql) %}
  71. <li><a href="?/debug/sql">{% trans 'SQL' %}</a></li>
  72. {% endif %}
  73. {% endif %}
  74. {% if newer_release %}
  75. <li>
  76. A newer version of vichan
  77. (<strong>v{{ newer_release.massive }}.{{ newer_release.major }}.{{ newer_release.minor }}</strong>) is available!
  78. See <a href="https://engine.vichan.net">https://engine.vichan.net/</a> for upgrade instructions.
  79. </li>
  80. {% endif %}
  81. <li><a href="?/logout/{{ logout_token }}">{% trans 'Logout' %}</a></li>
  82. </ul>