diff --git a/server/public/ui/templates/_filetree.ctmpl b/server/public/ui/templates/_filetree.ctmpl index f8af0bd..0e796ed 100644 --- a/server/public/ui/templates/_filetree.ctmpl +++ b/server/public/ui/templates/_filetree.ctmpl @@ -53,11 +53,15 @@ const title=id ? branch.Leaf.Meta.Title : "ROOT" const isLiveParent = '{{ .This.ID }}'.slice(0, id.length) == id const isLive = '{{ .This.ID }}' == id - return ` + const linkToFile = `
- - + + + ` + return linkToFile + (branch.Leaf.Meta.ReadOnly ? "" : ``) } function branchesHTML(id, branches) { if (!branchesHaveContent(branches))