@include(snippets/header)
<div id="main">
  <div class="topf0ckers">
    <h3>Top f0ckers of all time <br>- Ranking -</h3>
  </div>
  <div class="ranking">
    <div class="by-user">
      <h3>Biggest taggers</h3>
      <table class="table">
        <tbody>
        @for(let i = 0; i < list.length; i++)
          <tr>
            <td>{{ i + 1 }}</td>
            <td><a href="/{{ list[i].avatar }}"><img class="avatar" src="/t/{{ list[i].avatar }}.webp"></a></td>
            <td>@if(list[i].admin)&#11088;&nbsp;@endif<a href="/user/{!! list[i].user !!}">{!! list[i].user !!}</a></td>
            <td>{{ list[i].count }}</td>
          </tr>
        @endfor
        </tbody>
      </table>
    </div>
    <div class="by-hoster">
      <h3>Top {{ hoster.length }} hoster</h3>
      <table class="table">
        @each(hoster as host)
        <tr><td>{{ host.part.length ? host.part : "Telegram" }}</td><td>{{ host.c }}</td></tr>
        @endeach
      </table>
    </div>
    <div class="by-stats">
      <h3>Tag stats</h3>
      <table class="table">
        <tr><td>total</td><td>{{ stats.total }}</td></tr>
        <tr><td>tagged</td><td>{{ stats.tagged }}</td></tr>
        <tr><td>untagged</td><td>{{ stats.untagged }}</td></tr>
        <tr><td>SFW</td><td>{{ stats.sfw }}</td></tr>
        <tr><td>NSFW</td><td>{{ stats.nsfw }}</td></tr>
        <tr><td>deleted</td><td>{{ stats.deleted }}</td></tr>
        <tr><td>missing ids</td><td>{{ stats.untracked }}</td></tr>
      </table>

      <h3>Top f0cks</h3>
      <table class="table">
        @each(favotop as favo)
        <tr><td><a href="/{{ favo.item_id }}">{{ favo.item_id }}</a></td><td>{{ favo.favs }}</td></tr>
        @endeach
      </table>
    </div>
  </div>
</div>
@include(snippets/footer)
