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.

sidebar.twig 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <div class="box box_category">
  2. <div class="head"><strong>Category</strong></div>
  3. <div class="pad">
  4. <a href="collages.php?action=search&amp;cats[{{ category_id }}]=1">{{ category_name }}</a>
  5. {% if is_personal %}
  6. collage by {{ user_id|user_url }}
  7. {% endif %}
  8. </div>
  9. </div>
  10. <div class="box box_description">
  11. <div class="head"><strong>Description</strong></div>
  12. <div class="pad">{{ description|raw }}</div>
  13. </div>
  14. <div class="box box_info box_statistics_collage_{{ object }}s">
  15. <div class="head"><strong>Statistics</strong></div>
  16. <ul class="stats nobullet">
  17. <li>Entries: {{ entries|number_format }}</li>
  18. {% if artists %}
  19. <li>Artists: {{ artists|number_format }}</li>
  20. {% endif %}
  21. <li>Subscribers: {{ subscribers|number_format }}</li>
  22. <li>Built by {{ contributors_n|number_format }} user{{ contributors_n|plural }}</li>
  23. <li>Last updated: {{ updated|time_diff }}</li>
  24. </ul>
  25. </div>
  26. {% if top_tags is defined %}
  27. <div class="box box_tags">
  28. <div class="head"><strong>Top Tags</strong></div>
  29. <div class="pad">
  30. {% if top_tags is empty %}
  31. <i>None yet</i>
  32. {% else %}
  33. <ol style="padding-left: 5px;">
  34. {% for t in top_tags %}
  35. <li><a href="collages.php?action=search&amp;tags={{ t.tag }}">{{ t.tag }}</a> ({{ t.count }})</li>
  36. {% endfor %}
  37. </ol>
  38. {% endif %}
  39. </div>
  40. </div>
  41. {% endif %}
  42. {% if artists %}
  43. <div class="box box_artists">
  44. <div class="head"><strong>Top Artists</strong></div>
  45. <div class="pad">
  46. <ol style="padding-left: 5px;">
  47. {% for artist in top_artists %}
  48. <li><a href="artist.php?id={{ artist.id }} ">{{ artist.name }}</a> ({{ artist.count|number_format }})</li>
  49. {% endfor %}
  50. </ol>
  51. </div>
  52. </div>
  53. {% endif %}
  54. {% if not is_personal %}
  55. <div class="box box_contributors">
  56. <div class="head"><strong>Top Contributors</strong></div>
  57. <div class="pad">
  58. <ol style="padding-left: 5px;">
  59. {% for user_id, additions in contributors %}
  60. <li>{{ user_id|user_url }} ({{ additions|number_format }})</li>
  61. {% endfor %}
  62. </ol>
  63. </div>
  64. </div>
  65. {% endif %}
  66. {% if can_add %}
  67. <div class="box box_add{{ object }}">
  68. <div class="head"><strong>Add {{ object_name }}</strong><span class="float_right"><a href="#" onclick="$('.add_{{ object }}_container').toggle_class('hidden'); this.innerHTML = (this.innerHTML == 'Batch add' ? 'Individual add' : 'Batch add'); return false;" class="brackets">Batch add</a></span></div>
  69. <div class="pad add_{{ object }}_container">
  70. <form class="add_form" name="{{ object }}" action="collages.php" method="post">
  71. <input type="hidden" name="action" value="add_{{ object }}" />
  72. <input type="hidden" name="auth" value="{{ auth }}" />
  73. <input type="hidden" name="collageid" value="{{ id }}" />
  74. <div class="field_div">
  75. <input type="text" size="20" name="url" />
  76. </div>
  77. <div class="submit_div">
  78. <input type="submit" value="Add" />
  79. </div>
  80. <span style="font-style: italic;">Enter the URL of {{ object|article }} {{ object }} on the site.</span>
  81. </form>
  82. </div>
  83. <div class="pad hidden add_{{ object }}_container">
  84. <form class="add_form" name="{{ object }}s" action="collages.php" method="post">
  85. <input type="hidden" name="action" value="add_{{ object }}_batch" />
  86. <input type="hidden" name="auth" value="{{ auth }}" />
  87. <input type="hidden" name="collageid" value="{{ id }}" />
  88. <div class="field_div">
  89. <textarea name="urls" rows="5" cols="25" style="white-space: pre; word-wrap: normal; overflow: auto;"></textarea>
  90. </div>
  91. <div class="submit_div">
  92. <input type="submit" value="Add" />
  93. </div>
  94. <span style="font-style: italic;">Enter the URLs of {{ object}}s on the site, one per line.</span>
  95. </form>
  96. </div>
  97. </div>
  98. {% endif %}
  99. <h3>Comments</h3>
  100. {% for comment in comments %}
  101. <div class="box comment">
  102. <div class="head">
  103. {{ comment.author_id|user_url }} {{ comment.added|time_diff }}
  104. <br />
  105. <a href="reports.php?action=report&amp;type=collages_comment&amp;id={{ comment.id }}" class="brackets">Report</a>
  106. </div>
  107. <div class="pad">{{ comment.body|raw }}</div>
  108. </div>
  109. {% endfor %}
  110. <div class="box pad">
  111. <a href="collages.php?action=comments&amp;collageid={{ id }}" class="brackets">View all comments</a>
  112. </div>
  113. {% if can_post %}
  114. <div class="box box_addcomment">
  115. <div class="head"><strong>Add comment</strong></div>
  116. <form class="send_form" name="comment" id="quickpostform" onsubmit="quickpostform.submit_button.disabled = true;" action="comments.php" method="post">
  117. <input type="hidden" name="action" value="take_post" />
  118. <input type="hidden" name="page" value="collages" />
  119. <input type="hidden" name="auth" value="{{ auth }}" />
  120. <input type="hidden" name="pageid" value="{{ id }}" />
  121. <div class="pad">
  122. <div class="field_div">
  123. <textarea name="body" cols="24" rows="5"></textarea>
  124. </div>
  125. <div class="submit_div">
  126. <input type="submit" id="submit_button" value="Add comment" />
  127. </div>
  128. </div>
  129. </form>
  130. </div>
  131. {% endif %}