summaryrefslogtreecommitdiff
path: root/app/views/projects/merge_requests/_widget.html.haml
blob: b00c95c3cd75a19d40f68b910f2fd4a6b146e84a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- if @merge_request.source_branch_exists?
  = render "projects/merge_requests/how_to_merge"

= javascript_tag nonce: true do
  :plain
    window.gl = window.gl || {};
    window.gl.mrWidgetData = #{serialize_issuable(@merge_request, serializer: 'widget', issues_links: true)}

    window.gl.mrWidgetData.squash_before_merge_help_path = '#{help_page_path("user/project/merge_requests/squash_and_merge")}';
    window.gl.mrWidgetData.troubleshooting_docs_path = '#{help_page_path('user/project/merge_requests/index.md', anchor: 'troubleshooting')}';
    window.gl.mrWidgetData.security_approvals_help_page_path = '#{help_page_path('user/application_security/index.html', anchor: 'security-approvals-in-merge-requests-ultimate')}';
    window.gl.mrWidgetData.eligible_approvers_docs_path = '#{help_page_path('user/project/merge_requests/merge_request_approvals', anchor: 'eligible-approvers')}';

#js-vue-mr-widget.mr-widget