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.

private-main.twig 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <div class="main_column">
  2. {% if contest %}
  3. <div id="contest-info" class="box news_post" style="text-align:center">
  4. {% if contest.banner %}
  5. <br /><a href="/contest.php?action=leaderboard">
  6. <img src="{{ contest.banner }}" alt="{{ contest.name }}" title="{{ contest.name }}" />
  7. </a>
  8. {% endif %}
  9. <h5>The <a href="/contest.php?action=leaderboard">{{ contest.name }}</a> {{ contest.is_over ? 'ended' : 'ends in' }} {{ contest.dateEnd|time_diff }}</h5>
  10. </div>
  11. {% endif %}
  12. <div id="last_uploads" class="box news_post">
  13. <div class="head">
  14. <strong>Latest Uploads</strong>
  15. </div>
  16. <div class="head">
  17. <ul class="collage_images" id="collage_page0">
  18. {% for upload in latest %}
  19. {% set title = upload.name ~ '<br />(' ~ upload.tags ~ ')<br />uploaded by ' ~ upload.username ~ ' ' ~ upload.uploadDate|time_diff %}
  20. {% set alt = title|replace({'<br />': ' '}) %}
  21. <li class="image_group_{{ upload.groupId }}">
  22. <a href="torrents.php?id={{ upload.groupId }}&amp;torrentid={{ upload.torrentId }}>#torrent{{ upload.torrentId }}">
  23. <img class="tooltip_interactive" src="{{ upload.imageUrl|image }}" alt="{{ alt }}" title="{{ title }}"
  24. data-title-plain="{{ alt }}" width="118" /></a>
  25. </li>
  26. {% endfor %}
  27. </ul>
  28. </div>
  29. </div>
  30. {% for article in news[0:5] %}
  31. <div id="news{{ article.0 }}" class="box news_post">
  32. <div class="head">
  33. <strong>{{ article.1|bb_format }}</strong> {{ article.3|time_diff }}
  34. {% if admin %}
  35. - <a href="tools.php?action=editnews&amp;id={{ article.0 }}" class="brackets">Edit</a>
  36. {% endif %}
  37. <span style="float: right;"><a href="#" onclick="$('#newsbody{{ article.0 }}').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); return false;" class="brackets">Hide</a></span>
  38. </div>
  39. <div id="newsbody{{ article.0 }}" class="pad">{{ article.2|bb_format }}</div>
  40. </div>
  41. {% endfor %}
  42. <div id="more_news" class="box">
  43. <div class="head">
  44. <em><span><a href="#" onclick="news_ajax(event, 3, 5, {{ admin ? 1 : 0 }}, false); return false;">Click to load more news</a>.</span> To browse old news posts, <a href="forums.php?action=viewforum&amp;forumid=12">click here</a>.</em>
  45. </div>
  46. </div>
  47. </div>
  48. </div>