Commit 164d4744 authored by Douwe Maan's avatar Douwe Maan
Browse files

Add Merge Request button to branches page.

parent 722e3935
......@@ -49,7 +49,7 @@ v 7.11.0 (unreleased)
- Add footnotes support to Markdown (Guillaume Delbergue)
- Add current_sign_in_at to UserFull REST api.
- Make Sidekiq MemoryKiller shutdown signal configurable
- Add "Create Merge Request" buttons to commits page and push event.
- Add "Create Merge Request" buttons to commits and branches pages and push event.
v 7.10.2
- Fix CI links on MR page
......@@ -10,16 +10,19 @@
- if can?(current_user, :download_code, @project)
= render 'projects/repositories/download_archive', ref:, btn_class: 'btn-grouped btn-group-xs'
- if create_mr_button?(@repository.root_ref,
= link_to create_mr_path(@repository.root_ref,, class: 'btn btn-grouped btn-xs' do
= icon('plus')
Merge Request
- if != @repository.root_ref
= link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to:, class: 'btn btn-grouped btn-xs', method: :post, title: "Compare" do
= icon("exchange")
- if can_remove_branch?(@project,
= link_to namespace_project_branch_path(@project.namespace, @project,, class: 'btn btn-grouped btn-xs btn-remove remove-row', method: :delete, data: { confirm: 'Removed branch cannot be restored. Are you sure?'}, remote: true do
= icon("trash-o")
- if commit
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment