user.jet.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {{ if ! User.BackgroundImage }}
  2. <div class="background-cover"></div>
  3. {{ else }}
  4. <div class="background-cover" id="hasbg">
  5. <img src="{{ User.BackgroundImage }}" alt="{{ User.Name }}" />
  6. </div>
  7. {{ end }}
  8. <div class="container user">
  9. <div class="user-avatar">
  10. <img src="{{User.Avatar}}" alt="Avatar Of User">
  11. </div>
  12. <div class="user-details">
  13. <h1>{{ User.Name }}</h1>
  14. <div>
  15. <a href="https://pixiv.net/u/{{ User.ID }}">pixiv.net/u/{{ User.ID }}</a>
  16. <br />
  17. </div>
  18. <small> {{ User.Following }} Following | {{ User.MyPixiv }} MyPixiv </small>
  19. <div class="user-social">
  20. {{ if User.Webpage }}
  21. <span><a href="{{ User.Webpage }}"><img src="/assets/globe.png" alt="Webpage" /></a></span>
  22. {{ end }} {{ range index, item := User.Social }}
  23. <span>
  24. <a href="{{ item.url }}">
  25. <img src="/assets/{{ index }}.svg" alt="{{ index }}" />
  26. </a>
  27. </span>
  28. {{ end }}
  29. </div>
  30. <p>{{ raw: parsePixivRedirect(User.Comment) }}</p>
  31. </div>
  32. <div>Frequently Used Tags</div>
  33. <div class="user-tags">
  34. {{ range User.FrequentTags }}
  35. <a href="/tags/{{ .Name }}">
  36. #{{ .Name }}
  37. {* <div>
  38. {{ if ! .TranslatedName }}
  39. <div class="main">{{ .Name }}</div>
  40. {{ else }}
  41. <div class="main">{{ .TranslatedName }}</div>
  42. <div class="sub">#{{ .Name }}</div>
  43. {{ end }}
  44. </div> *}
  45. </a>
  46. {{ end }}
  47. </div>
  48. <div class="switcher">
  49. <div class="switch-title">Category</div>
  50. <a href="/users/{{ User.ID }}/#checkpoint" class="switch-button">All</a>
  51. <a href="/users/{{ User.ID }}/illustrations#checkpoint" class="switch-button">Illustrations</a>
  52. <a href="/users/{{ User.ID }}/manga#checkpoint" class="switch-button">Mangas</a>
  53. <a href="/users/{{ User.ID }}/novels#checkpoint" class="switch-button">Novels</a>
  54. <a href="/users/{{ User.ID }}/bookmarks#checkpoint" class="switch-button">Bookmarks</a>
  55. </div>
  56. <div>
  57. {{ if Category != "novels" }}
  58. <div class="artwork-container-header">
  59. <h2 id="checkpoint">Illustrations and Mangas</h2>
  60. {{ combinedUrl := "/artworks-multi/" + joinArtworkIds(User.Artworks) }}
  61. <div class="artwork-actions"><a href="{{combinedUrl}}">View all art on this page</a></div>
  62. </div>
  63. <div class="artwork-container">
  64. {{ include "components/small-tn" User.Artworks }}
  65. </div>
  66. {{ else }}
  67. <div class="artwork-container-header">
  68. <h2 id="checkpoint">Novels</h2>
  69. </div>
  70. <div class="novel-container">
  71. {{ range User.Novels }}
  72. {{ include "components/novel-tn" . }}
  73. {{ end }}
  74. </div>
  75. {{ end }}
  76. </div>
  77. <div class="pagination">
  78. {{ url := "/users/" + User.ID + "/" + Category + "?page="}}
  79. <small>Page {{ Page }}/{{ PageLimit }}</small>
  80. <br />
  81. {{ raw: createPaginator(url, "#checkpoint", Page, PageLimit) }}
  82. </div>
  83. </div>