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,project,ref)
elsifcan_edit_blob?(blob,project,ref)
link_to"Edit",edit_path,class: 'btn'
link_to"Edit",edit_path,class: 'btn'
elsifcan?(current_user,:fork_project,project)
elsifcan?(current_user,:fork_project,project)
...
@@ -50,9 +50,9 @@ module BlobHelper
...
@@ -50,9 +50,9 @@ module BlobHelper
returnunlessblob
returnunlessblob
if!on_top_of_branch?(project,ref)
if!on_top_of_branch?(project,ref)
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'}
elsifblob.lfs_pointer?
elsifblob.lfs_pointer?
button_taglabel,class: "btn btn-#{btn_class} disabled has_tooltip",title: "It is not possible to #{action} files that are stored in LFS using the web interface",data: {container: 'body'}
button_taglabel,class: "btn btn-#{btn_class} disabled has-tooltip",title: "It is not possible to #{action} files that are stored in LFS using the web interface",data: {container: 'body'}
.btn.disabled.notifications-btn.has_tooltip{title: "To change the notification level, you need to be a member of the project itself, not only its group."}
.btn.disabled.notifications-btn.has-tooltip{title: "To change the notification level, you need to be a member of the project itself, not only its group."}
=link_tonamespace_project_tag_path(@project.namespace,@project,tag.name),class: 'btn btn-grouped btn-xs btn-remove remove-row has_tooltip',title: "Delete tag",method: :delete,data: {confirm: "Deleting the '#{tag.name}' tag cannot be undone. Are you sure?",container: 'body'},remote: truedo
=link_tonamespace_project_tag_path(@project.namespace,@project,tag.name),class: 'btn btn-grouped btn-xs btn-remove remove-row has-tooltip',title: "Delete tag",method: :delete,data: {confirm: "Deleting the '#{tag.name}' tag cannot be undone. Are you sure?",container: 'body'},remote: truedo
=link_tonamespace_project_tag_path(@project.namespace,@project,@tag.name),class: 'btn btn-remove remove-row grouped has_tooltip',title: "Delete tag",method: :delete,data: {confirm: "Deleting the '#{@tag.name}' tag cannot be undone. Are you sure?"}do
=link_tonamespace_project_tag_path(@project.namespace,@project,@tag.name),class: 'btn btn-remove remove-row grouped has-tooltip',title: "Delete tag",method: :delete,data: {confirm: "Deleting the '#{@tag.name}' tag cannot be undone. Are you sure?"}do