Rename my files
This commit is contained in:
@@ -144,9 +144,9 @@ func (s *Server) handleFiles(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
slices.SortStableFunc(objects, adminSorts[sortBy])
|
slices.SortStableFunc(objects, adminSorts[sortBy])
|
||||||
|
|
||||||
title := "Your files"
|
title := "My files"
|
||||||
if lim.Admin {
|
if lim.Admin {
|
||||||
title = "All files"
|
title = "Administration"
|
||||||
}
|
}
|
||||||
// s.page resolves the session cookie, which is the right thing for the
|
// s.page resolves the session cookie, which is the right thing for the
|
||||||
// header but not for this body: the page has to describe the credential it
|
// header but not for this body: the page has to describe the credential it
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
{{else}}
|
{{else}}
|
||||||
|
|
||||||
<section class="card">
|
<section class="card">
|
||||||
<h1>{{if .Admin}}All files{{else}}Your files{{end}}</h1>
|
<h1>{{if .Admin}}Administration{{else}}My files{{end}}</h1>
|
||||||
<dl class="stats">
|
<dl class="stats">
|
||||||
<dt>Files</dt><dd>{{.Count}}{{if .Anonymous}} <em>({{.Anonymous}} anonymous)</em>{{end}}</dd>
|
<dt>Files</dt><dd>{{.Count}}{{if .Anonymous}} <em>({{.Anonymous}} anonymous)</em>{{end}}</dd>
|
||||||
{{if .Admin}}
|
{{if .Admin}}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<a class="brand" href="{{.Base}}">Uncensored Send</a>
|
<a class="brand" href="{{.Base}}">Uncensored Send</a>
|
||||||
<nav>
|
<nav>
|
||||||
{{if .User}}
|
{{if .User}}
|
||||||
<a href="{{.Base}}files">{{if .Admin}}All files{{else}}Your files{{end}}</a>
|
<a href="{{.Base}}files">{{if .Admin}}Administration{{else}}My files{{end}}</a>
|
||||||
<span class="who">{{.User}}</span>
|
<span class="who">{{.User}}</span>
|
||||||
<form method="post" action="{{.Base}}logout"><button type="submit" class="link">Log out</button></form>
|
<form method="post" action="{{.Base}}logout"><button type="submit" class="link">Log out</button></form>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|||||||
Reference in New Issue
Block a user