user list listing

This commit is contained in:
2018-07-08 14:40:20 +02:00
parent 2c8a12e757
commit 3d42d61e0d
9 changed files with 112 additions and 17 deletions

View File

@@ -13,6 +13,15 @@
in this browser.
</div>
<br/>
{{range .Other.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}}
{{template "analytics"}}
</body>

View File

@@ -9,6 +9,20 @@
<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">
{{range .Other.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}}
<a href="/files">...All my files</a>
</div>
<hr/>
{{template "footer"}}
</div>

View File

@@ -127,8 +127,7 @@
"file_name": "01 Holy Wars... The Punishment Due.mp3",
"description": "",
"date_created": 1513033304,
"date_last_view": 1513033304,
"list_description": ""
"date_last_view": 1513033304
},
{
"detail_href": "/file/RKwgZb/info",
@@ -136,8 +135,7 @@
"file_name": "02 Hangar 18.mp3",
"description": "",
"date_created": 1513033304,
"date_last_view": 1513033304,
"list_description": ""
"date_last_view": 1513033304
},
{
"detail_href": "/file/DRaL_e/info",
@@ -145,8 +143,7 @@
"file_name": "03 Take No Prisoners.mp3",
"description": "",
"date_created": 1513033304,
"date_last_view": 1513033304,
"list_description": ""
"date_last_view": 1513033304
}
]
}