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>
|
|
|
|
<div id='body' class="body">
|
2018-06-25 23:05:18 +02:00
|
|
|
{{template "menu" .}}
|
2019-02-18 22:42:20 +01:00
|
|
|
|
2019-07-17 23:19:57 +02:00
|
|
|
<h1 class="highlight_middle">Welcome home, {{.Username}}!</h1>
|
2019-02-25 22:53:09 +01:00
|
|
|
|
|
|
|
<h2>Actions</h2>
|
|
|
|
<ul>
|
2019-07-16 22:07:10 +02:00
|
|
|
<li><a href="/user/change_password" class="button">Change my password</a></li>
|
|
|
|
<li><a href="/logout" class="button">Log out</a></li>
|
2019-02-25 22:53:09 +01:00
|
|
|
</ul>
|
|
|
|
|
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">
|
2018-07-09 21:41:17 +02:00
|
|
|
{{$files := .PixelAPI.UserFiles 0 18}}
|
|
|
|
{{range $files.Files}}
|
2018-07-08 14:40:20 +02:00
|
|
|
<a class="file_button" href="/u/{{.ID}}" target="_blank">
|
2018-10-04 23:36:34 +02:00
|
|
|
<img src="{{$.APIEndpoint}}/file/{{.ID}}/thumbnail" alt="{{.Name}}" />
|
|
|
|
<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"}}
|
2018-07-08 14:40:20 +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">
|
2018-09-10 22:55:31 +02:00
|
|
|
{{$lists := .PixelAPI.UserLists 0 18}}
|
|
|
|
{{range $lists.Lists}}
|
|
|
|
<a class="file_button" href="/l/{{.ID}}" target="_blank">
|
|
|
|
<img src="{{$.APIEndpoint}}/list/{{.ID}}/thumbnail" alt="{{.Title}}" />
|
|
|
|
<span style="color: var(--highlight_color);">{{.Title}}</span>
|
|
|
|
({{.FileCount}} Files)
|
|
|
|
<br/>
|
|
|
|
{{.DateCreated.Format "2006-01-02 15:04:05"}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
<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>
|
2018-06-25 23:05:18 +02:00
|
|
|
{{template "footer"}}
|
|
|
|
</div>
|
|
|
|
{{template "analytics"}}
|
2017-11-10 12:39:55 +01:00
|
|
|
</body>
|
|
|
|
</html>
|
2018-06-25 23:05:18 +02:00
|
|
|
{{end}}
|