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.

header-thread.twig 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <div class="thin">
  2. <h2>
  3. <a href="forums.php">Forums</a> &rsaquo;
  4. <a href="forums.php?action=viewforum&amp;forumid={{ forum.id }}">{{ forum.name }}</a> &rsaquo; {{ thread_title }}
  5. </h2>
  6. <div class="linkbox">
  7. {% for d in dept_list %}
  8. <a class="brackets" href="forums.php?action=viewforum&amp;forumid={{ d.forum_id }}">
  9. {%- if d.active %}<b>{% endif %}{{ d.name }}{% if d.active %}</b>{% endif -%}
  10. {%- if d.unread %} <span title="unread">({{ d.unread|number_format }})</span>{% endif -%}
  11. </a>
  12. {% endfor %}
  13. </div>
  14. <div class="linkbox">
  15. <div class="center">
  16. <a href="reports.php?action=report&amp;type=thread&amp;id={{ thread_id }}" class="brackets">Report thread</a>
  17. <a href="#" onclick="Subscribe({{ thread_id }});return false;" id="subscribelink{{ thread_id }}" class="brackets">
  18. {%- if is_subbed %}Unsubscribe{% else %}Subscribe{% endif -%}
  19. </a>
  20. <a href="#" onclick="$('#searchthread').gtoggle(); this.innerHTML = (this.innerHTML == 'Search this thread' ? 'Hide search' : 'Search this thread'); return false;" class="brackets">Search this thread</a>
  21. </div>
  22. <div id="searchthread" class="hidden center">
  23. <div style="display: inline-block;">
  24. <h3>Search this thread:</h3>
  25. <form class="search_form" name="forum_thread" action="forums.php" method="get">
  26. <input type="hidden" name="action" value="search" />
  27. <input type="hidden" name="threadid" value="{{ thread_id }}" />
  28. <table cellpadding="6" cellspacing="1" border="0" class="layout border">
  29. <tr>
  30. <td><strong>Search for:</strong></td>
  31. <td><input type="search" id="searchbox" name="search" size="70" /></td>
  32. </tr>
  33. <tr>
  34. <td><strong>Posted by:</strong></td>
  35. <td><input type="search" id="username" name="user" placeholder="Username" size="70" /></td>
  36. </tr>
  37. <tr>
  38. <td colspan="2" style="text-align: center;">
  39. <input type="submit" name="submit" value="Search" />
  40. </td>
  41. </tr>
  42. </table>
  43. </form>
  44. <br />
  45. </div>
  46. </div>
  47. </div>
  48. {{ paginator.linkbox|raw }}
  49. {% for t in transition %}
  50. {% if loop.first %}
  51. <table class="layout border">
  52. <tr>
  53. <td class="label">Move thread</td>
  54. <td>
  55. {% endif %}
  56. <form action="forums.php" method="post" style="display: inline-block">
  57. <input type="hidden" name="action" value="mod_thread" />
  58. <input type="hidden" name="auth" value="{{ auth }}" />
  59. <input type="hidden" name="threadid" value="{{ thread_id }}" />
  60. <input type="hidden" name="page" value="{{ paginator.page }}" />
  61. <input type="hidden" name="transition" value="{{ t.id }}" />
  62. <input type="submit" value="{{ t.label }}" />
  63. </form>
  64. {% if loop.last %}
  65. </td>
  66. </tr>
  67. </table>
  68. {% endif %}
  69. {% endfor %}