Use NotEditableReason to check if file is editable

This commit is contained in:
bytedream committed 2025-05-10 00:24:45 +02:00
1 parent 42b7c87288
commit 32e2f4f470
2 files changed
+1 -5

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@
<input type="hidden" id="tree_path" name="tree_path" value="{{.TreePath}}" required>
</div>
</div>
{{if .IsFileEditable}}
{{if not .NotEditableReason}}
<div class="field">
<div class="ui top attached header">
<div class="ui compact small menu small-menu-items repo-editor-menu">