40 lines
1.5 KiB
HTML
40 lines
1.5 KiB
HTML
{{ template "header.html" }} {{ if isEmpty .User.BackgroundImage }}
|
|
<div class="user-background-placeholder"></div>
|
|
{{ else }}
|
|
<div class="user-background">
|
|
<img src="{{ .User.BackgroundImage }}" alt="{{ .User.Name }}" />
|
|
</div>
|
|
{{ end }}
|
|
<div class="container">
|
|
<div class="user-page">
|
|
<div class="user-details">
|
|
<img src="{{ .User.Avatar }}" alt="avatar" class="user-avatar" />
|
|
<h2 class="user-name">{{ .User.Name }}</h2>
|
|
<p class="user-id">
|
|
{{ .User.Following }} Following | {{ .User.MyPixiv }} MyPixiv
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<h1>Illustrations and Mangas</h1>
|
|
{{ template "small-tn.html" .User.Artworks }}
|
|
</div>
|
|
<div class="pagination">
|
|
{{ if eq .Page 1 }}
|
|
<a href="#" class="pagination-button disabled">Previous</a>
|
|
<a href="#" class="pagination-button disabled">1</a>
|
|
{{ else }}
|
|
<a href="/users/{{ .User.ID }}?page={{ dec .Page }}" class="pagination-button">Previous</a>
|
|
<a href="/users/{{ .User.ID }}?page={{ dec .Page }}" class="pagination-button">{{ dec .Page }}</a>
|
|
{{ end }}
|
|
<a href="#" class="pagination-button disabled">{{ .Page }}</a>
|
|
{{ if eq .Page (dec .PageLimit) }}
|
|
<a href="#" class="pagination-button disabled">{{ .PageLimit }}</a>
|
|
<a href="#" class="pagination-button disabled">Next</a>
|
|
{{ else }}
|
|
<a href="/users/{{ .User.ID }}?page={{ inc .Page }}" class="pagination-button">{{ inc .Page }}</a>
|
|
<a href="/users/{{ .User.ID }}?page={{ inc .Page }}" class="pagination-button">Next</a>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ template "footer.html" }}
|