add other files view/edit

This commit is contained in:
nahakubuilde
2025-08-25 18:32:31 +01:00
parent c85372e695
commit a306bf2cfd
7 changed files with 383 additions and 10 deletions

View File

@@ -74,6 +74,11 @@
<i class="fas fa-edit"></i>
</a>
{{end}}
{{if eq .Type "text"}}
<a href="/edit_text/{{.Path}}" class="text-blue-400 hover:text-blue-300 p-2" title="Edit">
<i class="fas fa-edit"></i>
</a>
{{end}}
{{if eq .Type "image"}}
<a href="/serve_attached_image/{{.Path}}" target="_blank" class="text-yellow-400 hover:text-yellow-300 p-2" title="View">
<i class="fas fa-eye"></i>