diff --git a/templates/webclient/editfile.html b/templates/webclient/editfile.html
index 8b486520..2440ca9d 100644
--- a/templates/webclient/editfile.html
+++ b/templates/webclient/editfile.html
@@ -56,7 +56,7 @@ along with this program. If not, see .
- Edit file "{{.Path}}"
+ {{- if .ReadOnly}}View{{- else}}Edit{{- end}} file "{{.Path}}"Back
{{if not .ReadOnly}}