From c16a9f234bdef4bd4fa99480705fd96256692e9b Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Sat, 15 Aug 2015 11:21:26 +0900 Subject: [PATCH] (refs #878)Hide the Delete button for other than the head of branch --- src/main/twirl/gitbucket/core/repo/blob.scala.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/twirl/gitbucket/core/repo/blob.scala.html b/src/main/twirl/gitbucket/core/repo/blob.scala.html index b77d89df8..bd186af38 100644 --- a/src/main/twirl/gitbucket/core/repo/blob.scala.html +++ b/src/main/twirl/gitbucket/core/repo/blob.scala.html @@ -61,7 +61,7 @@ Blame } History - @if(hasWritePermission){ + @if(hasWritePermission && repository.branchList.contains(branch)){ Delete }