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.

history-ip-tracker.twig 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <div class="thin">
  2. <div class="header">
  3. {% if user %}
  4. <h2><a href="user.php?id={{ user.id }}">{{ user.username }}</a> &rsaquo; Tracker IP History</h2>
  5. {% else %}
  6. <h2>IP address {{ ipaddr }} &rsaquo; Tracker IP History</h2>
  7. {% endif %}
  8. </div>
  9. {% for s in summary %}
  10. {% if loop.first %}
  11. <div class="header">
  12. <h3>Summary</h3>
  13. </div>
  14. <table>
  15. <tr class="colhead">
  16. {% if is_mod %}
  17. <td title="Click on an address to view list of users seen on that address">IP address</td>
  18. {% else %}
  19. <td>IP address</td>
  20. {% endif %}
  21. <td>Total</td>
  22. <td>First Seen</td>
  23. <td>Last Seen</td>
  24. </tr>
  25. {% endif %}
  26. <tr>
  27. {% if is_mod %}
  28. <td><a href="{{ urlstem }}ip={{ s.IP }}">{{ s.IP }}</a></td>
  29. {% else %}
  30. <td>">{{ s.IP }}</td>
  31. {% endif %}
  32. <td>{{ s.total|number_format }}</td>
  33. <td>{{ s.first|time_diff }}</td>
  34. <td>{{ s.last|time_diff }}</td>
  35. {% if loop.last %}
  36. </table>
  37. {% endif %}
  38. {% endfor %}
  39. <div class="header">
  40. <h3>Detail</h3>
  41. </div>
  42. {{ paginator.linkbox|raw }}
  43. <table>
  44. <tr class="colhead">
  45. {% if user %}
  46. <td>IP address</td>
  47. {% else %}
  48. <td>Username</td>
  49. {% endif %}
  50. <td>Torrent</td>
  51. <td>Time</td>
  52. </tr>
  53. {% for r in details %}
  54. <tr class="row{{ cycle(['a', 'b'], loop.index0) }}">
  55. <td>
  56. {% if user %}
  57. {{ r.IP }} ({{ resolveCountryIpv4(r.ip) }}) {{ resolveIpv4(r.ip) }}
  58. <a href="http://whatismyipaddress.com/ip/{{ r.ip }}" class="brackets tooltip" title="Search WIMIA.com">WI</a>
  59. {% else %}
  60. <a href="{{ urlstem }}userid={{ r.uid }}">{{ r.username }}</a>
  61. {% endif %}
  62. </td>
  63. <td><a href="torrents.php?torrentid={{ r.fid }}">{{ r.name }}</a></td>
  64. <td>{{ r.date|time_diff }}</td>
  65. </tr>
  66. {% endfor %}
  67. </table>
  68. {{ paginator.linkbox|raw }}
  69. </div>
  70. <script type="text/javascript">
  71. function ShowIPs(rowname) {
  72. $('tr[name="'+rowname+'"]').gtoggle();
  73. }
  74. </script>