BioTorrents.de’s version of Gazelle
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.

post-history.twig 4.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <div class="thin">
  2. <div class="header">
  3. <h2><a href="user.php?id={{ user.id }}">{{ user.username }}</a> &rsaquo; {{ title }}</h2>
  4. <div class="linkbox">
  5. <br /><br />
  6. {% if not own_profile %}
  7. <a href="forums.php?action=search&amp;type=body&amp;user={{ user.username }}" class="brackets">Search</a>
  8. {% else %}
  9. {% if not show_unread %}
  10. {% if show_grouped %}
  11. <a href="{{ url_stem|raw }}showunread=0&amp;group=0" class="brackets">Show all posts</a>&nbsp;
  12. {% else %}
  13. <a href="{{ url_stem|raw }}showunread=0&amp;group=1" class="brackets">Show all posts (grouped)</a>&nbsp;
  14. {% endif %}
  15. <a href="{{ url_stem|raw }}showunread=1&amp;group=1" class="brackets">Only display posts with unread replies (grouped)</a>&nbsp;
  16. {% else %}
  17. <a href="{{ url_stem|raw }}showunread=0&amp;group=0" class="brackets">Show all posts</a>&nbsp;
  18. {% if not show_grouped %}
  19. <a href="{{ url_stem|raw }}showunread=1&amp;group=1" class="brackets">Only display posts with unread replies (grouped)</a>&nbsp;
  20. {% else %}
  21. <a href="{{ url_stem|raw }}showunread=1&amp;group=0" class="brackets">Only display posts with unread replies</a>&nbsp;
  22. {% endif %}
  23. {% endif %}
  24. <a href="userhistory.php?action=subscriptions" class="brackets">Go to subscriptions</a>
  25. {% endif %}
  26. </div>
  27. </div>
  28. {% if not posts %}
  29. <div class="center">
  30. No topics{% if show_unread %} with unread posts{% endif %}
  31. </div>
  32. {% else %}
  33. {{ paginator.linkbox|raw }}
  34. {% for p in posts %}
  35. <table class="forum_post vertical_margin{% if viewer.showAvatars %} noavatar{% endif %}" id="post<?=$PostID ?>">
  36. <colgroup>
  37. {% if viewer.showAvatars %}
  38. <col class="col_avatar" />
  39. {% endif %}
  40. <col class="col_post_body" />
  41. </colgroup>
  42. <tr class="colhead_dark">
  43. <td colspan="{% if viewer.showAvatars %}2{% else %}1{% endif %}">
  44. <span style="float: left;">
  45. {{ p.added_time|time_diff }}
  46. in <a href="forums.php?action=viewthread&amp;threadid={{ p.thread_id }}&amp;postid={{ p.post_id
  47. }}#post{{ p.post_id }}" class="tooltip" title="{{ p.title }}">{{ p.title|shorten(75) }}</a>
  48. {% if not own_profile %}
  49. </span>
  50. {% else %}
  51. {% if p.new %}
  52. <span class="new">(New!)</span>
  53. {% endif %}
  54. </span>
  55. {% if p.last_read %}
  56. <span style="float: left;" class="tooltip last_read" title="Jump to last read">
  57. <a href="forums.php?action=viewthread&amp;threadid={{ p.thread_id }}&amp;postid={{ p.last_read }}#post{{ p.last_read }}"></a>
  58. </span>
  59. {% endif %}
  60. {% endif %}
  61. <span id="bar<?=$PostID ?>" style="float: right;">
  62. {% if own_profile and not p.thread_id in subscriptions %}
  63. <a href="#" onclick="Subscribe({{ p.thread_id }}); $('.subscribelink{{ p.thread_id }}').remove(); return false;" class="brackets subscribelink{{ p.thread_id }}">Subscribe</a>
  64. &nbsp;
  65. {% endif %}
  66. <a href="#">&uarr;</a>
  67. </span>
  68. </td>
  69. </tr>
  70. {% if not show_grouped %}
  71. <tr>
  72. {% if viewer.showAvatars %}
  73. <td class="avatar" valign="top">
  74. {{ avatar|raw }}
  75. </td>
  76. {% endif %}
  77. <td class="body" valign="top">
  78. <div id="content{{ p.post_id }}">
  79. {{ p.body|bb_format }}
  80. {%- if p.edited_user_id -%}
  81. <br /><br />
  82. <span class="last_edited">
  83. {%- if is_fmod -%}
  84. <a href="#content{{ p.post_id }}" onclick="LoadEdit({{ p.post_id }}, 1);">&laquo;</a>
  85. {%- endif %}
  86. Last edited by {{ p.edited_user_id|user_url }} {{ p.edited_time|time_diff }}
  87. </span>
  88. {%- endif %}
  89. </div>
  90. </td>
  91. </tr>
  92. {% endif %}
  93. </table>
  94. {% endfor %}
  95. {{ paginator.linkbox|raw }}
  96. {% endif %}
  97. </div>