Just a whole bunch of fixing
This commit is contained in:
34
res/template/account/user_home.html
Normal file
34
res/template/account/user_home.html
Normal file
@@ -0,0 +1,34 @@
|
||||
{{define "user_home"}}<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
{{template "meta_tags" .Username}}
|
||||
<script type="text/javascript">var apiEndpoint = '{{.APIEndpoint}}';</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id='body' class="body">
|
||||
{{template "menu" .}}
|
||||
<h1>Welcome home, {{.Username}}!</h1>
|
||||
<hr/>
|
||||
<h2>Your most recently uploaded files:</h2>
|
||||
<div class="highlight_dark border_top border_bottom">
|
||||
{{$files := .PixelAPI.UserFiles 0 18}}
|
||||
{{range $files.Files}}
|
||||
<a class="file_button" href="/u/{{.ID}}" target="_blank">
|
||||
<img src="{{$.APIEndpoint}}/file/{{.ID}}/thumbnail" alt="{{.FileName}}" />
|
||||
<span style="color: var(--highlight_color);">{{.FileName}}</span>
|
||||
<br/>
|
||||
{{.DateUpload}}
|
||||
</a>
|
||||
{{end}}
|
||||
<br/>
|
||||
<a href="/user/files">...All my files</a>
|
||||
</div>
|
||||
<hr/>
|
||||
|
||||
{{template "footer"}}
|
||||
</div>
|
||||
{{template "analytics"}}
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
Reference in New Issue
Block a user