show.html.haml 1.79 KB
Newer Older
Kushal Pandya's avatar
Kushal Pandya committed
1 2
- @no_breadcrumb_container = true
- @no_container = true
3 4
- @html_class = "group-epics-roadmap-html"
- @body_class = "group-epics-roadmap-body"
Kushal Pandya's avatar
Kushal Pandya committed
5 6 7
- @content_wrapper_class = "group-epics-roadmap-wrapper"
- @content_class = "group-epics-roadmap"
- breadcrumb_title _("Epics Roadmap")
8
- epics_limit_feature = 'epics_limit_warning_dismissed'
9 10
- sub_epics_feature_available = @group.feature_available?(:subepics)
- allow_sub_epics = sub_epics_feature_available ? 'true' : 'false'
Kushal Pandya's avatar
Kushal Pandya committed
11

12 13
- has_filters_applied = params[:label_name].present? || params[:author_username].present? || params[:search].present?

Kushal Pandya's avatar
Kushal Pandya committed
14
- if @epics_count != 0
15
  = render 'shared/epic/search_bar', type: :epics, show_roadmap_presets: true, hide_extra_sort_options: true
16

17 18 19 20 21 22 23 24 25
  - if @epics_count > Groups::RoadmapController::EPICS_ROADMAP_LIMIT && show_callout?(epics_limit_feature)
    .warning_message.mb-0.js-epics-limit-callout{ role: 'alert', data: { uid: epics_limit_feature } }
      %button.js-close-callout.close{ type: "button", target: ".js-epics-limit-callout", "aria-hidden": true, "aria-label": _("Close") }
        = sprite_icon("close")
      %p
        = s_("Some of your epics may not be visible. A roadmap is limited to the first 1,000 epics, in your selected sort order.")
      %a.btn.btn-outline-warning#js-learn-more{ "href" => "https://docs.gitlab.com/ee/user/group/roadmap/" }
        = _("Learn more")

26
  #js-roadmap{ data: { epics_path: group_epics_path(@group, format: :json), group_id: @group.id, full_path: @group.full_path, empty_state_illustration: image_path('illustrations/epics/roadmap.svg'), has_filters_applied: "#{has_filters_applied}", new_epic_endpoint: group_epics_path(@group), preset_type: roadmap_layout, epics_state: @epics_state, sorted_by: @sort, allow_sub_epics: allow_sub_epics } }
27

Kushal Pandya's avatar
Kushal Pandya committed
28 29
- else
  = render 'shared/empty_states/roadmap'