Rename my files

This commit is contained in:
2026-09-13 11:32:33 +02:00
parent 30826f3671
commit 99bdadf248
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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}}
+1 -1
View File
@@ -12,7 +12,7 @@
<a class="brand" href="{{.Base}}">Uncensored&nbsp;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}}