artwork.jet.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <div class="container illust">
  2. {{ if !Illust.IsUgoira }}
  3. <div class="illust-images">
  4. {{ range index := Illust.Images }}
  5. <a href="{{ .Original }}" target="_blank">
  6. <img src="{{ .Large }}" alt="Page {{ index }}" />
  7. </a>
  8. {{ end }}
  9. </div>
  10. {{ else }}
  11. <div class="illust-images">
  12. <a href="https://ugoira.com/i/{{ Illust.ID }}" target="_blank">
  13. <video
  14. autoplay
  15. loop
  16. muted
  17. disablepictureinpicture
  18. playsinline
  19. poster="{{ Illust.Images[0].Large }}"
  20. src="https://ugoira.com/api/mp4/{{ Illust.ID }}"
  21. >
  22. Unable to load ugoira.
  23. </video>
  24. </a>
  25. </div>
  26. <a href="https://ugoira.com/i/{{ Illust.ID }}"
  27. >Go to ugoira.com for more options</a
  28. >
  29. {{ end }}
  30. <div class="illust-attr">
  31. <a href="/users/{{ Illust.User.ID }}"
  32. ><img
  33. src="{{ Illust.User.Avatar }}"
  34. alt="{{ Illust.User.Name }}"
  35. class="illust-avatar"
  36. />
  37. </a>
  38. <div class="attr-wrap">
  39. <div class="illust-title">{{ Illust.Title }}</div>
  40. <div class="illust-author">
  41. <a href="/users/{{ Illust.User.ID }}">{{ Illust.User.Name }}</a>
  42. </div>
  43. </div>
  44. </div>
  45. <div>
  46. <a href="https://pixiv.net/i/{{ Illust.ID }}"
  47. >pixiv.net/i/{{ Illust.ID }}</a
  48. >
  49. <br />
  50. </div>
  51. <div class="illust-tags">
  52. <span class="illust-tag-attr">
  53. <img src="/assets/eye.png" alt="Views" />
  54. {{ Illust.Views }}
  55. </span>
  56. <span class="illust-tag-attr">
  57. <img src="/assets/heart-solid.png" alt="Bookmarks" />
  58. {{ Illust.Bookmarks }}
  59. </span>
  60. <span class="illust-tag-attr">
  61. <img src="/assets/like.png" alt="Likes" />
  62. {{ Illust.Likes }}
  63. </span>
  64. <span class="illust-tag-attr">
  65. <img src="/assets/calendar.png" alt="Date" />
  66. {{ parseTime: Illust.Date }}
  67. </span>
  68. </div>
  69. <div class="illust-tags">
  70. {{ if Illust.AiType == 2 }}
  71. <span class="illust-tag">
  72. <span class="illust-tag-name" id="highlight">AI-generated</span>
  73. </span>
  74. {{ end }} {{ range Illust.Tags }} {{ if isEmphasize(.Name) }}
  75. <span class="illust-tag">
  76. <span class="illust-tag-name" id="highlight">{{ .Name }}</span>
  77. </span>
  78. {{ else }}
  79. <span class="illust-tag">
  80. <span class="illust-tag-name"
  81. ><a href="/tags/{{ escapeString(.Name) }}">#{{ .Name }}</a></span
  82. ><span class="illust-tag-translation">{{ .TranslatedName }}</span>
  83. </span>
  84. {{ end }} {{ end }}
  85. </div>
  86. <br />
  87. <div class="illust-description">
  88. {{ raw: parsePixivRedirect(Illust.Description) }}
  89. </div>
  90. <br />
  91. <div class="illust-other-works">
  92. <a href="/users/{{ Illust.User.ID }}"
  93. ><img src="{{ Illust.User.Avatar }}" alt="{{ Illust.User.Name }}" /> Other
  94. works by {{ Illust.User.Name }}
  95. <span class="special-symbol">&raquo;</span>
  96. </a>
  97. <div class="artwork-container-scroll">
  98. {{ range Illust.RecentWorks }}
  99. <div class="artwork-small artwork">
  100. {{ include "components/thumbnail-dt" . }}
  101. </div>
  102. {{ end }}
  103. </div>
  104. </div>
  105. <hr />
  106. <h2>Comments</h2>
  107. {{ if Illust.CommentDisabled == 1 }}
  108. <p>The creator turned comments off</p>
  109. {{ else if Illust.Comments == 0 }}
  110. <p>There are no comments yet</p>
  111. {{ else }} {{ range Illust.CommentsList }}
  112. <div class="comment">
  113. <img class="comment-avatar" src="{{ .Avatar }}" alt="{{ .AuthorName }}" />
  114. <div class="comment-context">
  115. <b>{{ .AuthorName }}</b>
  116. <p>
  117. {{ if .Stamp }}
  118. <img
  119. class="stamp"
  120. src="https://s.pximg.net/common/images/stamp/generated-stamps/{{ .Stamp }}_s.jpg"
  121. alt="https://s.pximg.net/common/images/stamp/generated-stamps/{{ .Stamp }}_s.jpg"
  122. />
  123. {{ else }} {{ raw: parseEmojis(.Context) }} {{ end }}
  124. </p>
  125. <small>{{ .Date }}</small>
  126. </div>
  127. </div>
  128. {{ end }} {{ end }}
  129. </div>
  130. <div class="container">
  131. <h2>Related works</h2>
  132. <div class="artwork-container">
  133. {{ include "components/small-tn" Illust.RelatedWorks }}
  134. </div>
  135. </div>