rank.jet.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <div class="container">
  2. <h2>{{ Title }}</h2>
  3. <div class="switcher">
  4. {{ url := "/ranking?mode=" + Queries.Mode + "&date=" + Data.CurrentDate +
  5. "&page=1&content=" }}
  6. <div class="switch-title">Content</div>
  7. <a href="{{ url }}all" class="switch-button">Overall</a>
  8. <a href="{{ url }}illust" class="switch-button">Illustrations</a>
  9. <a href="{{ url }}manga" class="switch-button">Mangas</a>
  10. </div>
  11. <br />
  12. <div class="switcher">
  13. {{ url := "/ranking?content=" + Queries.Content +"&date=" + Data.CurrentDate
  14. + "&page=1&mode=" }}
  15. <div class="switch-title">Modes</div>
  16. <a href="{{ url }}daily" class="switch-button">Daily</a>
  17. <a href="{{ url }}weekly" class="switch-button">Weekly</a>
  18. <a href="{{ url }}monthly" class="switch-button">Monthly</a>
  19. <a href="{{ url }}rookie" class="switch-button">Rookie</a>
  20. <span class="switch-seperator"></span>
  21. <a href="{{ url }}daily_r18" class="switch-button">Daily (R-18)</a>
  22. <a href="{{ url }}weekly_r18" class="switch-button">Weekly (R-18)</a>
  23. </div>
  24. <br />
  25. <div class="switcher">
  26. {{ url := "/ranking?content=" + Queries.Content + "&mode=" + Queries.Mode +
  27. "&page=1" }}
  28. <div class="switch-title">Date</div>
  29. {{ if Data.PrevDate != "false" }}
  30. <a href="{{ url }}&date={{Data.PrevDate}}" class="switch-button"
  31. >Yesterday</a
  32. >
  33. {{ end }} {{ if Data.NextDate != "false" }}
  34. <a href="{{ url }}&date={{Data.NextDate}}" class="switch-button"
  35. >Next day</a
  36. >
  37. {{ end }}
  38. <a href="{{ url }}" class="switch-button">Latest</a>
  39. <span class="switch-seperator"></span>
  40. <a href="/ranking_log">Ranking calendar</a>
  41. </div>
  42. <br />
  43. <div class="artwork-container">
  44. {{ range Data.Artworks }}
  45. <div class="artwork-small artwork">
  46. <div class="artwork-additional">
  47. <div class="artwork-position">{{ .Rank }}</div>
  48. {{ if toInt(.Pages) > 1 }}
  49. <div class="artwork-page-count"><span>&boxbox; {{ .Pages }}</span></div>
  50. {{ end }}
  51. </div>
  52. <a href="/artworks/{{ .ID }}">
  53. <img src="{{ .Image }}" alt="{{ .Title }}" />
  54. </a>
  55. <div class="artwork-title">
  56. <a href="/artworks/{{ .ID }}"> {{ .Title }} </a>
  57. </div>
  58. <div class="artwork-author">
  59. <a href="/users/{{ .ArtistID }}"
  60. ><img src="{{ .ArtistAvatar }}" alt="{{ .ArtistName }}" />
  61. <span>{{ .ArtistName }}</span></a
  62. >
  63. </div>
  64. </div>
  65. {{ end }}
  66. </div>
  67. <div class="pagination">
  68. {{ url := "/ranking?content=" + Queries.Content +"&date=" + Data.CurrentDate
  69. + "&mode=" + Queries.Mode + "&page=" }}
  70. <small>Page {{ Page }}/10</small>
  71. <br />
  72. {{ raw: createPaginator(url, "#checkpoint", Page, 10) }}
  73. </div>
  74. </div>