mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-03 20:15:59 +01:00
Disable AceEditor for non text files
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<a href="@url(repository)/commit/@latestCommit.id" class="commit-message">@link(latestCommit.summary, repository)</a>
|
||||
</div>
|
||||
<div class="btn-group pull-right">
|
||||
@if(hasWritePermission){
|
||||
@if(hasWritePermission && content.viewType == "text"){
|
||||
<a class="btn" href="@url(repository)/edit/@encodeRefName(branch)/@pathList.mkString("/")">Edit</a>
|
||||
}
|
||||
<a class="btn" href="?raw=true">Raw</a>
|
||||
|
||||
Reference in New Issue
Block a user