Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_merge_requests.html.haml « empty_states « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ff5741b6d61b495cf57b6a01034beecfa38e4908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- button_path = local_assigns.fetch(:button_path, false)
- project_select_button = local_assigns.fetch(:project_select_button, false)
- has_button = button_path || project_select_button

.row.empty-state.merge-requests
  .col-xs-12
    .svg-content
      = render 'shared/empty_states/icons/merge_requests.svg'
  .col-xs-12.text-center
    .text-content
      - if has_button
        %h4
          Merge requests are a place to propose changes you've made to a project and discuss those changes with others.
        %p
          Interested parties can even contribute by pushing commits if they want to.
        - if project_select_button
          = render 'shared/new_project_item_select', path: 'merge_requests/new', label: 'New merge request', type: :merge_requests
        - else
          = link_to 'New merge request', button_path, class: 'btn btn-new', title: 'New merge request', id: 'new_merge_request_link'
      - else
        %h4.text-center
          There are no merge requests to show.