2018-06-25 23:05:18 +02:00
|
|
|
{{define "user_home"}}<!DOCTYPE html>
|
|
|
|
<html>
|
2017-11-10 12:39:55 +01:00
|
|
|
<head>
|
2018-06-25 23:05:18 +02:00
|
|
|
{{template "meta_tags" .Username}}
|
2019-02-18 13:37:41 +01:00
|
|
|
{{template "user_style" .}}
|
2018-06-25 23:05:18 +02:00
|
|
|
<script type="text/javascript">var apiEndpoint = '{{.APIEndpoint}}';</script>
|
2017-11-10 12:39:55 +01:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2019-09-16 23:50:57 +02:00
|
|
|
{{template "page_top" .}}
|
2019-02-18 22:42:20 +01:00
|
|
|
|
2019-09-17 23:38:40 +02:00
|
|
|
<h1>Welcome home, {{.Username}}!</h1>
|
2019-02-25 22:53:09 +01:00
|
|
|
|
2019-09-17 23:38:40 +02:00
|
|
|
<div class="page_content"><div class="limit_width">
|
2019-12-17 19:28:30 +01:00
|
|
|
<h2>Account information</h2>
|
2019-02-25 22:53:09 +01:00
|
|
|
<ul>
|
2019-12-17 19:28:30 +01:00
|
|
|
<li>Username: {{.Username}}</li>
|
|
|
|
<li>E-mail address: {{.Email}}</li>
|
2019-02-25 22:53:09 +01:00
|
|
|
</ul>
|
2019-12-17 19:28:30 +01:00
|
|
|
<a href="/user/settings" class="button">Update account settings</a>
|
2019-02-25 22:53:09 +01:00
|
|
|
|
2018-07-08 14:40:20 +02:00
|
|
|
<h2>Your most recently uploaded files:</h2>
|
2019-07-17 23:19:57 +02:00
|
|
|
<div class="highlight_dark">
|
2019-09-18 22:23:12 +02:00
|
|
|
{{$files := .PixelAPI.UserFiles 0 15}}
|
2019-08-11 17:16:18 +02:00
|
|
|
{{range $files.Files}}<!--
|
|
|
|
--><a class="file_button" href="/u/{{.ID}}" target="_blank">
|
2019-12-10 14:47:11 +01:00
|
|
|
<img src="{{$.APIEndpoint}}/file/{{.ID}}/thumbnail?width=80&height=80" alt="{{.Name}}" />
|
2018-10-04 23:36:34 +02:00
|
|
|
<span style="color: var(--highlight_color);">{{.Name}}</span>
|
2018-07-08 14:40:20 +02:00
|
|
|
<br/>
|
2018-09-10 22:55:31 +02:00
|
|
|
{{.DateUpload.Format "2006-01-02 15:04:05"}}
|
2019-08-11 17:16:18 +02:00
|
|
|
</a><!--
|
|
|
|
-->{{end}}
|
2018-07-08 21:57:59 +02:00
|
|
|
<br/>
|
2019-02-07 23:09:54 +01:00
|
|
|
<a href="/user/files" class="button">...All my files</a>
|
2018-07-08 14:40:20 +02:00
|
|
|
</div>
|
2018-09-10 22:55:31 +02:00
|
|
|
<h2>Your most recently created lists:</h2>
|
2019-07-17 23:19:57 +02:00
|
|
|
<div class="highlight_dark">
|
2019-09-18 22:23:12 +02:00
|
|
|
{{$lists := .PixelAPI.UserLists 0 15}}
|
2019-08-11 17:16:18 +02:00
|
|
|
{{range $lists.Lists}}<!--
|
|
|
|
--><a class="file_button" href="/l/{{.ID}}" target="_blank">
|
2019-12-10 14:47:11 +01:00
|
|
|
<img src="{{$.APIEndpoint}}/list/{{.ID}}/thumbnail?width=80&height=80" alt="{{.Title}}" />
|
2018-09-10 22:55:31 +02:00
|
|
|
<span style="color: var(--highlight_color);">{{.Title}}</span>
|
|
|
|
({{.FileCount}} Files)
|
|
|
|
<br/>
|
|
|
|
{{.DateCreated.Format "2006-01-02 15:04:05"}}
|
2019-08-11 17:16:18 +02:00
|
|
|
</a><!--
|
|
|
|
-->{{end}}
|
2018-09-10 22:55:31 +02:00
|
|
|
<br/>
|
2019-02-07 23:09:54 +01:00
|
|
|
<a href="/user/lists" class="button">...All my lists</a>
|
2018-09-10 22:55:31 +02:00
|
|
|
</div>
|
2019-09-17 23:38:40 +02:00
|
|
|
<br/><br/>
|
|
|
|
</div></div>
|
2019-09-16 23:50:57 +02:00
|
|
|
|
|
|
|
{{template "page_bottom" .}}
|
|
|
|
|
2018-06-25 23:05:18 +02:00
|
|
|
{{template "analytics"}}
|
2017-11-10 12:39:55 +01:00
|
|
|
</body>
|
|
|
|
</html>
|
2018-06-25 23:05:18 +02:00
|
|
|
{{end}}
|