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

@@ -219,20 +219,19 @@ a:hover{
.file_button, .file_button:hover{
position: relative;
box-sizing: border-box;
width: 316px;
width: 310px;
max-width: 90%;
height: 60px;
float: left;
margin: 6px;
padding: 0;
overflow: hidden;
box-shadow: 0px 0px 5px 2px #111;
box-shadow: 0px 0px 10px 4px #111;
background-color: #111;
color: var(--text_color);
word-break: break-all;
text-align: left;
line-height: 120%;
display: block;
display: inline-block;
}
.file_button > img{
max-height: 60px;

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
}
]
}