artwork.jet.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <div class="container illust" id="checkpoint">
  2. {{ include "components/artwork" Illust }}
  3. <div class="illust-other-works">
  4. <div class="artwork-container-header">
  5. <a class="illust-other-works-author" href="/users/{{ Illust.User.ID }}"
  6. ><img src="{{ Illust.User.Avatar }}" alt="{{ Illust.User.Name }}" /> Other works by {{ Illust.User.Name }}
  7. <span class="special-symbol">&raquo;</span>
  8. </a>
  9. {{ combinedUrl := "/artworks-multi/" + joinArtworkIds(Illust.RecentWorks) }}
  10. <div class="artwork-actions"><a href="{{combinedUrl}}">View all</a></div>
  11. </div>
  12. <div class="artwork-container-scroll">
  13. {{ range Illust.RecentWorks }}
  14. <div class="artwork-small artwork">
  15. {{ include "components/thumbnail-dt" . }}
  16. </div>
  17. {{ end }}
  18. </div>
  19. </div>
  20. <hr />
  21. <h2>Comments</h2>
  22. {{ if Illust.CommentDisabled == 1 }}
  23. <p>The creator turned comments off</p>
  24. {{ else if Illust.Comments == 0 }}
  25. <p>There are no comments yet</p>
  26. {{ else }} {{ range Illust.CommentsList }}
  27. <div class="comment">
  28. <img class="comment-avatar" src="{{ .Avatar }}" alt="{{ .AuthorName }}" />
  29. <div class="comment-context">
  30. <b>{{ .AuthorName }}</b>
  31. <p>
  32. {{ if .Stamp }}
  33. <img
  34. class="stamp"
  35. src="/proxy/s.pximg.net/common/images/stamp/generated-stamps/{{ .Stamp }}_s.jpg"
  36. alt="/proxy/s.pximg.net/common/images/stamp/generated-stamps/{{ .Stamp }}_s.jpg"
  37. />
  38. {{ else }} {{ raw: parseEmojis(.Context) }} {{ end }}
  39. </p>
  40. <small>{{ .Date }}</small>
  41. </div>
  42. </div>
  43. {{ end }} {{ end }}
  44. </div>
  45. <div class="container">
  46. <h2>Related works</h2>
  47. <div class="artwork-container">
  48. {{ include "components/small-tn" Illust.RelatedWorks }}
  49. </div>
  50. </div>