summaryrefslogtreecommitdiff
path: root/app/views/projects/blob/show.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-08 17:10:07 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-08 17:10:07 +0100
commit82ddd738b672afd4ed28f12fb58f512fa117d2be (patch)
tree2630ea3648b68058293a6d3f91d753a45fd1a6bb /app/views/projects/blob/show.html.haml
parentdf6750d3d6b562c8a6a0a57c12dfd694da38a0e8 (diff)
downloadgitlab-ce-82ddd738b672afd4ed28f12fb58f512fa117d2be.tar.gz
Show tooltip when trying to edit file when not on branch
Diffstat (limited to 'app/views/projects/blob/show.html.haml')
-rw-r--r--app/views/projects/blob/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/blob/show.html.haml b/app/views/projects/blob/show.html.haml
index 09d6fc18e3e..3f8d11ed8c8 100644
--- a/app/views/projects/blob/show.html.haml
+++ b/app/views/projects/blob/show.html.haml
@@ -6,7 +6,7 @@
%div#tree-holder.tree-holder
= render 'blob', blob: @blob
-- if can_delete_or_replace?(@blob)
+- if blob_editable?(@blob)
= render 'projects/blob/remove'
- title = "Replace #{@blob.name}"