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.

invited.twig 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <div class="thin">
  2. <div class="header">
  3. <h2>{{ user.id|user_url }} &rsaquo; Invites</h2>
  4. <div class="linkbox">
  5. <a href="user.php?action=invitetree{% if not own_profile %}&amp;userid={{ user.id }}{% endif %}" class="brackets">Invite tree</a>
  6. {% if view_pool %}
  7. <a href="tools.php?action=invite_pool" class="brackets">Invite pool</a>
  8. {% endif %}
  9. </div>
  10. </div>
  11. {% if user.disableInvites %}
  12. <div class="box pad" style="text-align: center;">
  13. <strong class="important_text">Your invites have been disabled.
  14. Please read <a href="wiki.php?action=article&amp;id={{ wiki_article }}">this article</a> for more information.</strong>
  15. </div>
  16. {% elseif user.onRatioWatch or not user.canLeech %}
  17. <div class="box pad" style="text-align: center;">
  18. <strong class="important_text">You may not send invites while on Ratio Watch or while your leeching privileges are disabled.
  19. Please read <a href="wiki.php?action=article&amp;id={{ wiki_article }}">this article</a> for more information.</strong>
  20. </div>
  21. {% elseif not invites_open %}
  22. <div class="box pad notice">
  23. <p>The user limit has been reached: you are unable to send invites at this time.
  24. Please wait until the enabled user count falls below {{ constant('USER_LIMIT') }}.</p>
  25. </div>
  26. {% elseif own_profile and user.canInvite %}
  27. <div class="box pad">
  28. <p>Please note that selling, trading, or publicly giving away our invitations&#8202;&mdash;&#8202;or responding
  29. to public invite requests&#8202;&mdash;&#8202;is strictly forbidden, and may result in you and your entire invite tree being banned.</p>
  30. <p>Do not send an invite to anyone who has previously had an {{ constant('SITE_NAME') }} account.
  31. Please direct them to {{ constant('BOT_DISABLED_CHAN') }} on {{ constant('BOT_SERVER') }} if they wish to reactivate their account.</p>
  32. <p>Remember that you are responsible for ALL invitees, and your account and/or privileges may be disabled due to your invitees' actions.
  33. You should know and trust the person you're inviting. If you aren't familiar enough with the user to trust them, do not invite them.</p>
  34. <p><em>Do not send an invite if you have not read or do not understand the information above.</em></p>
  35. </div>
  36. <div class="box box2">
  37. <form class="send_form pad" name="invite" action="user.php" method="post">
  38. <input type="hidden" name="action" value="take_invite" />
  39. <input type="hidden" name="auth" value="{{ auth }}" />
  40. <div class="field_div">
  41. <div class="label">Email address:</div>
  42. <div class="input">
  43. <input type="email" name="email" size="60" />
  44. <input type="submit" value="Invite" />
  45. </div>
  46. </div>
  47. {% if user.permitted('users_invite_notes') %}
  48. <div class="field_div">
  49. <div class="label">Staff Note:</div>
  50. <div class="input">
  51. <input type="text" name="reason" size="60" maxlength="255" />
  52. </div>
  53. </div>
  54. {% endif %}
  55. </form>
  56. </div>
  57. {% endif %}
  58. {% for p in user.pendingInviteList %}
  59. {% if loop.first %}
  60. <h3>Pending invites</h3>
  61. <div class="box pad">
  62. <table width="100%">
  63. <tr class="colhead">
  64. <td>Email address</td>
  65. <td>Expires in</td>
  66. <td>Key</td>
  67. <td>Invite link</td>
  68. <td>Delete invite</td>
  69. </tr>
  70. {% endif %}
  71. <tr class="row{{ cycle(['a', 'b'], loop.index0) }}">
  72. <td>{{ p.email }}</td>
  73. <td>{{ p.expires|time_diff }}</td>
  74. <td>{{ p.invite_key }}</td>
  75. <td><a href="register.php?invite={{ p.invite_key }}">Invite link</a></td>
  76. <td><a href="user.php?action=delete_invite&amp;invite={{ p.invite_key }}&amp;auth={{ auth }}"
  77. onclick="return confirm('Are you sure you want to delete this invite?');">Delete invite</a></td>
  78. </tr>
  79. {% if loop.last %}
  80. </table>
  81. {% endif %}
  82. </div>
  83. {% endfor %}
  84. <h3>Invitee list</h3>
  85. <div class="box pad">
  86. <table class="invite_table m_table" width="100%">
  87. <tr class="colhead">
  88. <td class="m_th_left nobr">{{ heading.emit('username')|raw }}</td>
  89. <td class="nobr">{{ heading.emit('email')|raw }}</td>
  90. <td class="nobr">{{ heading.emit('joined')|raw }}</td>
  91. <td class="nobr">{{ heading.emit('lastseen')|raw }}</td>
  92. <td class="m_th_right nobr">{{ heading.emit('uploaded')|raw }}</td>
  93. <td class="m_th_right nobr">{{ heading.emit('downloaded')|raw }}</td>
  94. <td class="m_th_right nobr">{{ heading.emit('ratio')|raw }}</td>
  95. </tr>
  96. {% for u in invited %}
  97. <tr class="row{{ cycle(['a', 'b'], loop.index0) }}">
  98. <td class="td_username">{{ u.user_id|user_full|raw }}</td>
  99. <td class="td_email">{{ u.email }}</td>
  100. <td class="td_join_date">{{ u.join_date|time_diff }}</td>
  101. <td class="td_last_access">{{ u.last_access|time_diff }}</td>
  102. <td class="td_up m_td_right">{{ u.uploaded|octet_size }}</td>
  103. <td class="td_dl m_td_right">{{ u.downloaded|octet_size }}</td>
  104. <td class="td_ratio m_td_right">{{ ratio(u.uploaded, u.downloaded) }}</td>
  105. </tr>
  106. {% endfor %}
  107. </table>
  108. </div>
  109. </div>