button_tag"Edit",class: "btn btn-default disabled has_tooltip",title: "You can only edit files when you are on a branch",data: {container: 'body'}
button_tag"Edit",class: "btn btn-default disabled has_tooltip",title: "You can only edit files when you are on a branch",data: {container: 'body'}
elsifcan_edit_blob?(blob)
link_to"Edit",edit_path,class: 'btn btn-small'
elsifcan?(current_user,:fork_project,project)
...
...
@@ -62,7 +62,7 @@ module BlobHelper
returnunlessblob
if!on_top_of_branch?
button_taglabel,class: "btn btn-#{btn_class} disabled has_tooltip",title: "You can only #{action} files when you are on a branch",data: {container: 'body'}
button_taglabel,class: "btn btn-#{btn_class} disabled has_tooltip",title: "You can only #{action} files when you are on a branch",data: {container: 'body'}