artwork.jet.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. {{ if Illust.CommentDisabled == 1 }}
  22. <p>The creator turned comments off</p>
  23. {{ else if Illust.Comments == 0 }}
  24. <p>There are no comments yet</p>
  25. {{ else }} {{ range Illust.CommentsList }}
  26. <div class="comment">
  27. <a href="/users/{{ .AuthorID }}" class="comment-author">
  28. <img class="comment-avatar" src="{{ .Avatar }}" alt="{{ .AuthorName }}" />
  29. </a>
  30. <div class="comment-context">
  31. <a href="/users/{{ .AuthorID }}" class="comment-author">
  32. {{ .AuthorName }}
  33. </a>
  34. <p>
  35. {{ if .Stamp }}
  36. <img
  37. class="stamp"
  38. src="/proxy/s.pximg.net/common/images/stamp/generated-stamps/{{ .Stamp }}_s.jpg"
  39. alt="/proxy/s.pximg.net/common/images/stamp/generated-stamps/{{ .Stamp }}_s.jpg"
  40. />
  41. {{ else }} {{ raw: parseEmojis(.Context) }} {{ end }}
  42. </p>
  43. <small>{{ .Date }}</small>
  44. </div>
  45. </div>
  46. {{ end }} {{ end }}
  47. </div>
  48. <div class="container">
  49. <h2>Related works</h2>
  50. <div class="artwork-container">
  51. {{ include "components/small-tn" Illust.RelatedWorks }}
  52. </div>
  53. </div>