experiences.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>{{.Strings.Experiences.title}}</title>
  7. <link rel="stylesheet" href="/static/style/style.css" />
  8. <link rel="icon" type="image/svg+xml" href="/static/img/logo.svg">
  9. <link rel="apple-touch-icon" type="image/svg+xml" href="/static/img/logo.svg">
  10. </head>
  11. <body>
  12. <header class="w12 padding-bottom-_25 flex flex-row flex-justify-space flex-align-centre">
  13. <a href="/" class="decoration-none">
  14. <h1 class="inline valign-mid text sans margin-lr-1">a·muse</h1>
  15. </a>
  16. <div class="margin-lr-1 text">
  17. <nav>
  18. <label for="hamburger" class="cursor-hand">
  19. <img src="/users/{{.State.User.Username}}/avatar?size=small" class="border-radius-25 width-1_5"/>
  20. </label>
  21. <input type="checkbox" id="hamburger" class="display-none" />
  22. <ul class="absolute right top-1 padding-lr-1 padding-tb-_5 bg align-right list-style-none sans">
  23. <!--<li><a href="/users/{{.State.User.Username}}" class="decoration-none text-accent">{{.Strings.Global.account}}</a><span class="material-icon padding-lr-_5">&#xe851;</span></li>-->
  24. <li><a href="/users/{{.State.User.Username}}/watchlist" class="decoration-none text-accent">{{.Strings.Global.watchlist}}</a><span class="material-icon padding-lr-_5">&#xe04a;</span></li>
  25. <li><a href="/users/{{.State.User.Username}}/tvqueue" class="decoration-none text-accent">{{.Strings.Global.tv_queue}}</a><span class="material-icon padding-lr-_5">&#xe1b2;</span></li>
  26. <li><a href="/users/{{.State.User.Username}}/readlist" class="decoration-none text-accent">{{.Strings.Global.readlist}}</a><span class="material-icon padding-lr-_5">&#xe431;</span></li>
  27. <li><a href="/users/{{.State.User.Username}}/experiences" class="decoration-none text-accent">{{.Strings.Global.experiences}}</a><span class="material-icon padding-lr-_5">&#xe042;</span></li>
  28. <li class="bg-error">
  29. <form action="/users/{{.State.User.Username}}/sessions/{{.State.User.Session}}" method="POST" class="inline">
  30. <input type="hidden" value="DELETE" name="method" />
  31. <input type="submit" value="{{.Strings.Global.log_out}}" class="border-none bg-none font-normal text-accent padding-lr-0 cursor-hand font-1" />
  32. </form><span class="material-icon padding-lr-_5">&#xe7ff;</span>
  33. </li>
  34. </ul>
  35. </nav>
  36. </div>
  37. </header>
  38. <main class="margin-lr-1">
  39. <!-- search, filter, order -->
  40. <!--<div class="flex flex-row flex-wrap flex-centre flex-align-start margin-top-1">
  41. <form method="GET" class="flex inline margin-lr-1 border-bottom">
  42. <input type="search" name="filter" class="border-none bg-none sans text" placeholder="{{.Strings.Experiences.filter}}" value="{{.Data.Query}}" />
  43. </form>
  44. </div>-->
  45. {{if .Data.List}}
  46. <div class="flex flex-row flex-wrap flex-justify-space flex-align-start margin-top-1">
  47. <div>
  48. {{if gt .Data.Page 1}}
  49. <a href="/users/{{.State.User.Username}}/experiences?filter={{.Data.Query}}&page={{.Data.PrevPage}}" class="decoration-none" title="{{.Strings.Search.prev_link_title}}"><span class="material-icon font-2">&#xe408;</span></a>
  50. {{end}}
  51. </div>
  52. <div>Page {{.Data.Page}}/{{.Data.Pages}}</div>
  53. <div>
  54. {{if lt .Data.Page .Data.Pages}}
  55. <a href="/users/{{.State.User.Username}}/experiences?filter={{.Data.Query}}&page={{.Data.NextPage}}" class="decoration-none" title="{{.Strings.Search.next_link_title}}"><span class="material-icon font-2">&#xe409;</span></a>
  56. {{end}}
  57. </div>
  58. </div>
  59. <div class="flex flex-column w12 flex-align-start">
  60. {{- $lastDate:="" -}}
  61. {{- range .Data.List -}}
  62. {{- if and (ne $lastDate ($.FormatDate .Datetime)) (ne $lastDate "")}}
  63. </div>
  64. {{end}}
  65. {{- if not .Datetime.IsZero -}}
  66. {{- if ne $lastDate ($.FormatDate .Datetime)}}
  67. <div class="margin-lr-5">
  68. <span class="sans">{{$.FormatDateNice .Datetime $.State.User.Timezone}}</span><hr class="margin-top-_25 margin-bottom-1"/>
  69. {{- end}}
  70. <p>
  71. <span class="sans">{{.FormatDatetime $.Strings}}</span>
  72. <a href="/{{.Type}}s/{{.Id}}" class="sans decoration-none">{{.Title}} ({{.YearStart}})</a>
  73. {{if eq .Type "tvserie"}}<span class="sans">{{.Code}}</span>{{end}}
  74. {{- if gt .Collection 0 -}}<span class="sans">(<!--{{.Collection}} <!-- collection name and link -->#{{.Part}})</span>{{- end}}
  75. </p>
  76. {{- end -}}
  77. {{$lastDate = ($.FormatDate .Datetime) -}}
  78. {{end}}
  79. </div>
  80. </div>
  81. <div class="flex flex-row flex-wrap flex-justify-space flex-align-start margin-top-1">
  82. <div>
  83. {{if gt .Data.Page 1}}
  84. <a href="/users/{{.State.User.Username}}/experiences?filter={{.Data.Query}}&page={{.Data.PrevPage}}" class="decoration-none" title="{{.Strings.Search.prev_link_title}}"><span class="material-icon font-2">&#xe408;</span></a>
  85. {{end}}
  86. </div>
  87. <div>
  88. {{if lt .Data.Page .Data.Pages}}
  89. <a href="/users/{{.State.User.Username}}/experiences?filter={{.Data.Query}}&page={{.Data.NextPage}}" class="decoration-none" title="{{.Strings.Search.next_link_title}}"><span class="material-icon font-2">&#xe409;</span></a>
  90. {{end}}
  91. </div>
  92. </div>
  93. {{else if eq .Data.Pages 0}}
  94. <div class="font-2 w12 flex flex-centre margin-top-10">
  95. <div>
  96. <p>{{.Strings.Global.empty_quote}}</p>
  97. <p class="indent-2 sans">—{{.Strings.Global.empty_character}} (<span class="italic sans">{{.Strings.Global.empty_title}}</span>)</p>
  98. </div>
  99. </div>
  100. {{else if gt .Data.Page .Data.Pages}}
  101. <div class="font-2 w12 flex flex-centre margin-top-10">
  102. <div>
  103. <p>{{.Strings.Global.too_far_quote}}</p>
  104. <p class="indent-2 sans">—{{.Strings.Global.too_far_character}} (<span class="italic sans">{{.Strings.Global.too_far_title}}</span>, {{.Strings.Global.too_far_code}} {{.Strings.Global.too_far_episode}})</p>
  105. </div>
  106. </div>
  107. {{end}}
  108. </main>
  109. </body>
  110. </html>