mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 02:21:17 +02:00
Use NotEditableReason to check if file is editable
This commit is contained in:
1 parent
42b7c87288
commit
32e2f4f470
2 files changed
+1
-5
No files matched your search
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user