_show.html.haml 1.57 KB
Newer Older
Felipe Artur's avatar
Felipe Artur committed
1 2
- board = local_assigns.fetch(:board, nil)
- group = local_assigns.fetch(:group, false)
3
- @no_breadcrumb_container = true
4 5
- @no_container = true
- @content_class = "issue-boards-content"
6
- breadcrumb_title "Issue Board"
7 8 9
- page_title "Boards"

- content_for :page_specific_javascripts do
10
  = webpack_bundle_tag 'common_vue'
11

12
  -# haml-lint:disable InlineJavaScript
13
  %script#js-board-template{ type: "text/x-template" }= render "shared/boards/components/board"
14
  %script#js-board-modal-filter{ type: "text/x-template" }= render "shared/issuable/search_bar", type: :boards_modal
15

16 17 18
#board-app.boards-app{ "v-cloak" => true, data: board_data, ":class" => "{ 'is-compact': detailIssueVisible }" }
  .hidden-xs.hidden-sm
    = render 'shared/issuable/search_bar', type: :boards
19

20
  .boards-list
21 22 23 24 25 26 27 28
    .boards-app-loading.text-center{ "v-if" => "loading" }
      = icon("spinner spin")
    %board{ "v-cloak" => true,
      "v-for" => "list in state.lists",
      "ref" => "board",
      ":list" => "list",
      ":disabled" => "disabled",
      ":issue-link-base" => "issueLinkBase",
29
      ":root-path" => "rootPath",
30
      ":board-id" => "boardId",
31
      ":key" => "_uid" }
Felipe Artur's avatar
Felipe Artur committed
32
  = render "shared/boards/components/sidebar", group: group
33 34 35 36 37 38 39 40
  - if @project
    %board-add-issues-modal{ "new-issue-path" => new_project_issue_path(@project),
      "milestone-path" => milestones_filter_dropdown_path,
      "label-path" => labels_filter_path,
      "empty-state-svg" => image_path('illustrations/issues.svg'),
      ":issue-link-base" => "issueLinkBase",
      ":root-path" => "rootPath",
      ":project-id" => @project.id }