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])
|
||||
|
||||
title := "Your files"
|
||||
title := "My files"
|
||||
if lim.Admin {
|
||||
title = "All files"
|
||||
title = "Administration"
|
||||
}
|
||||
// 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
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
{{else}}
|
||||
|
||||
<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">
|
||||
<dt>Files</dt><dd>{{.Count}}{{if .Anonymous}} <em>({{.Anonymous}} anonymous)</em>{{end}}</dd>
|
||||
{{if .Admin}}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<a class="brand" href="{{.Base}}">Uncensored Send</a>
|
||||
<nav>
|
||||
{{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>
|
||||
<form method="post" action="{{.Base}}logout"><button type="submit" class="link">Log out</button></form>
|
||||
{{else}}
|
||||
|
||||
Reference in New Issue
Block a user