The version of vichan running on lainchan.org
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

64 рядки
1.7KB

  1. <table class="modlog">
  2. <tr>
  3. <th>{% trans 'Staff' %}</th>
  4. <th>{% trans 'IP address' %}</th>
  5. <th>{% trans 'Time' %}</th>
  6. <th>{% trans 'Board' %}</th>
  7. <th>{% trans 'Action' %}</th>
  8. </tr>
  9. {% for log in logs %}
  10. <tr>
  11. <td class="minimal">
  12. {% if log.username %}
  13. {% if hide_names %}
  14. <em>hidden</em>
  15. {% else %}
  16. {% if not mod|hasPermission(config.mod.modlog) %}
  17. <a href="?/new_PM/{{ log.username|e }}">{{ log.username|e }}</a>
  18. {% else %}
  19. <a href="?/log:{{ log.username|e }}">{{ log.username|e }}</a>
  20. {% endif %}
  21. {% endif %}
  22. {% elseif log.mod == -1 %}
  23. <em>system</em>
  24. {% else %}
  25. <em>{% trans 'deleted?' %}</em>
  26. {% endif %}
  27. </td>
  28. <td class="minimal">
  29. {% if mod|hasPermission(config.mod.show_ip_modlog) %}
  30. <a href="?/IP/{{ log.ip }}">{{ log.ip }}</a>
  31. {% else %}
  32. <em>hidden</em>
  33. {% endif %}
  34. </td>
  35. <td class="minimal">
  36. <span title="{{ log.time|date(config.post_date) }}">{{ log.time|ago }}</span>
  37. </td>
  38. <td class="minimal">
  39. {% if log.board %}
  40. <a href="?/{{ config.board_path|sprintf(log.board) }}{{ config.file_index }}">{{ config.board_abbreviation|sprintf(log.board) }}</a>
  41. {% else %}
  42. -
  43. {% endif %}
  44. </td>
  45. <td>
  46. {{ log.text }}
  47. </td>
  48. </tr>
  49. {% endfor %}
  50. </table>
  51. {% if count > logs|count %}
  52. <p class="unimportant" style="text-align:center;word-wrap:break-word">
  53. {% for i in range(0, (count - 1) / config.mod.modlog_page) %}
  54. {% if public %}
  55. <a href="?page={{ i + 1 }}&amp;board={{ board|url_encode }}">[{{ i + 1 }}]</a>
  56. {% else %}
  57. <a href="?/log{% if username %}:{{ username }}{% elseif board %}:b:{{ board }}{% endif %}/{{ i + 1 }}">[{{ i + 1 }}]</a>
  58. {% endif %}
  59. {% endfor %}
  60. </p>
  61. {% endif %}