editfiles: fix label

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2023-09-17 17:38:20 +02:00
parent d6e31ce8e2
commit f37b57884f
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -56,7 +56,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<div class="card shadow mb-4"> <div class="card shadow mb-4">
<div class="card-header"> <div class="card-header">
<h6 class="d-flex justify-content-between align-items-center"> <h6 class="d-flex justify-content-between align-items-center">
<span class="font-weight-bold text-primary">Edit file "{{.Path}}"</span> <span class="font-weight-bold text-primary">{{- if .ReadOnly}}View{{- else}}Edit{{- end}} file "{{.Path}}"</span>
<span class="btn-toolbar"> <span class="btn-toolbar">
<a id="idBack" class="btn btn-secondary mx-1 my-1" href='{{.FilesURL}}?path={{.CurrentDir}}' role="button">Back</a> <a id="idBack" class="btn btn-secondary mx-1 my-1" href='{{.FilesURL}}?path={{.CurrentDir}}' role="button">Back</a>
{{if not .ReadOnly}} {{if not .ReadOnly}}