2023-06-08 08:55:15 +00:00
|
|
|
{{ template "header.html" .Title}} {{ if isEmpty .User.BackgroundImage }}
|
2023-05-19 05:15:27 +00:00
|
|
|
<div class="user-background-placeholder"></div>
|
|
|
|
{{ else }}
|
2023-05-16 15:07:17 +00:00
|
|
|
<div class="user-background">
|
2023-06-01 13:02:19 +00:00
|
|
|
<img src="{{ proxyImage .User.BackgroundImage }}" alt="{{ .User.Name }}" />
|
2023-05-16 15:07:17 +00:00
|
|
|
</div>
|
2023-05-19 05:15:27 +00:00
|
|
|
{{ end }}
|
2023-05-16 15:07:17 +00:00
|
|
|
<div class="container">
|
|
|
|
<div class="user-page">
|
|
|
|
<div class="user-details">
|
2023-06-07 10:30:49 +00:00
|
|
|
<img
|
|
|
|
src="{{ proxyImage .User.Avatar }}"
|
|
|
|
alt="avatar"
|
|
|
|
class="user-avatar"
|
|
|
|
/>
|
2023-05-16 15:07:17 +00:00
|
|
|
<h2 class="user-name">{{ .User.Name }}</h2>
|
2023-05-18 15:03:21 +00:00
|
|
|
<p class="user-id">
|
|
|
|
{{ .User.Following }} Following | {{ .User.MyPixiv }} MyPixiv
|
|
|
|
</p>
|
2023-06-07 10:30:49 +00:00
|
|
|
<p class="user-comment">{{ .User.Comment }}</p>
|
2023-05-16 15:07:17 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h1>Illustrations and Mangas</h1>
|
2023-05-19 15:05:55 +00:00
|
|
|
{{ template "small-tn.html" .User.Artworks }}
|
|
|
|
</div>
|
|
|
|
<div class="pagination">
|
|
|
|
{{ if eq .Page 1 }}
|
2023-06-01 04:23:03 +00:00
|
|
|
<a href="#" class="pagination-button disabled">First</a>
|
2023-05-19 15:05:55 +00:00
|
|
|
<a href="#" class="pagination-button disabled">Previous</a>
|
|
|
|
{{ else }}
|
2023-06-01 04:23:03 +00:00
|
|
|
<a href="/users/{{ .User.ID }}?page=1" class="pagination-button">First</a>
|
2023-06-07 10:30:49 +00:00
|
|
|
<a
|
|
|
|
href="/users/{{ .User.ID }}?page={{ dec .Page }}"
|
|
|
|
class="pagination-button"
|
|
|
|
>Previous</a
|
|
|
|
>
|
2023-05-19 15:05:55 +00:00
|
|
|
{{ end }}
|
2023-06-01 04:23:03 +00:00
|
|
|
|
2023-05-19 15:05:55 +00:00
|
|
|
<a href="#" class="pagination-button disabled">{{ .Page }}</a>
|
2023-06-01 04:23:03 +00:00
|
|
|
|
2023-05-20 04:16:44 +00:00
|
|
|
{{ if eq .Page (dec .PageLimit) }}
|
2023-05-19 15:05:55 +00:00
|
|
|
<a href="#" class="pagination-button disabled">Next</a>
|
2023-06-01 04:23:03 +00:00
|
|
|
<a href="#" class="pagination-button disabled">Last</a>
|
2023-05-19 15:05:55 +00:00
|
|
|
{{ else }}
|
2023-06-07 10:30:49 +00:00
|
|
|
<a
|
|
|
|
href="/users/{{ .User.ID }}?page={{ inc .Page }}"
|
|
|
|
class="pagination-button"
|
|
|
|
>Next</a
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
href="/users/{{ .User.ID }}?page={{ dec .PageLimit }}"
|
|
|
|
class="pagination-button"
|
|
|
|
>Last</a
|
|
|
|
>
|
2023-05-19 15:05:55 +00:00
|
|
|
{{ end }}
|
2023-05-16 15:07:17 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-05-17 12:39:28 +00:00
|
|
|
{{ template "footer.html" }}
|