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)
link_to"Edit",edit_path,class: 'btn'
elsifcan?(current_user,:fork_project,project)
...
...
@@ -50,9 +50,9 @@ module BlobHelper
returnunlessblob
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?
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'}
@@ -131,7 +131,6 @@ class MergeRequest < ActiveRecord::Base
validate:validate_branches
validate:validate_fork
scope:of_group,->(group){where("source_project_id in (:group_project_ids) OR target_project_id in (:group_project_ids)",group_project_ids: group.projects.select(:id).reorder(nil))}
scope:by_branch,->(branch_name){where("(source_branch LIKE :branch) OR (target_branch LIKE :branch)",branch: branch_name)}
scope:cared,->(user){where('assignee_id = :user OR author_id = :user',user: user.id)}
=link_to'Remove avatar',group_avatar_path(@group.to_param),data: {confirm: "Group avatar will be removed. Are you sure?"},method: :delete,class: "btn btn-remove btn-sm remove-avatar"
.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