diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 10:00:54 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 10:00:54 +0000 |
commit | 3cccd102ba543e02725d247893729e5c73b38295 (patch) | |
tree | f36a04ec38517f5deaaacb5acc7d949688d1e187 /app/views/dashboard | |
parent | 205943281328046ef7b4528031b90fbda70c75ac (diff) | |
download | gitlab-ce-3cccd102ba543e02725d247893729e5c73b38295.tar.gz |
Add latest changes from gitlab-org/gitlab@14-10-stable-eev14.10.0-rc42
Diffstat (limited to 'app/views/dashboard')
-rw-r--r-- | app/views/dashboard/milestones/index.html.haml | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/app/views/dashboard/milestones/index.html.haml b/app/views/dashboard/milestones/index.html.haml index 872099f98fc..2bbca851dcc 100644 --- a/app/views/dashboard/milestones/index.html.haml +++ b/app/views/dashboard/milestones/index.html.haml @@ -12,16 +12,29 @@ path: '-/milestones/new', label: 'New milestone', include_groups: true, type: :milestones -.top-area - = render 'shared/milestones_filter', counts: @milestone_states - .nav-controls - = render 'shared/milestones/search_form' +- if @milestone_states.any? { |name, count| count > 0 } + .top-area + = render 'shared/milestones_filter', counts: @milestone_states + .nav-controls + = render 'shared/milestones/search_form' -- if @milestones.blank? - = render 'shared/empty_states/milestones' + - if @milestones.blank? + = render 'shared/empty_states/milestones_tab', active_tab: params[:state] do + - if current_user + .page-title-controls + = render 'shared/new_project_item_select', + path: '-/milestones/new', label: 'New milestone', + include_groups: true, type: :milestones + - else + .milestones + %ul.content-list + - @milestones.each do |milestone| + = render 'milestone', milestone: milestone + = paginate @milestones, theme: 'gitlab' - else - .milestones - %ul.content-list - - @milestones.each do |milestone| - = render 'milestone', milestone: milestone - = paginate @milestones, theme: 'gitlab' + = render 'shared/empty_states/milestones' do + - if current_user + .page-title-controls + = render 'shared/new_project_item_select', + path: '-/milestones/new', label: 'New milestone', + include_groups: true, type: :milestones |