Commit 26157394 authored by Phil Hughes's avatar Phil Hughes

Links to issues

parent 83b4ba28
......@@ -6,7 +6,8 @@
filters: Object,
issues: Array,
query: String,
loading: Boolean
loading: Boolean,
issueLinkBase: String
},
data: () => {
return {
......
......@@ -14,7 +14,15 @@
= icon("search", class: "board-search-icon", "v-show" => "!query")
%button.board-search-clear-btn{ type: "button", role: "button", "aria-label" => "Clear search", "@click" => "clearSearch", "v-show" => "query" }
= icon("times", class: "board-search-clear")
%board-list{ "inline-template" => true, "v-if" => "board.id != 'blank'", ":board-id" => "board.id", ":issues" => "board.issues", ":disabled" => "#{current_user.nil?}", ":query" => "query", ":filters" => "filters", ":loading" => "board.loading" }
%board-list{ "inline-template" => true,
"v-if" => "board.id != 'blank'",
":board-id" => "board.id",
":issues" => "board.issues",
":disabled" => "#{current_user.nil?}",
":query" => "query",
":filters" => "filters",
":loading" => "board.loading",
":issue-link-base" => "'#{namespace_project_issues_path(@project.namespace, @project)}'" }
.board-list-loading.text-center{ "v-if" => "loading" }
= icon("spinner spin")
%ul.board-list{ "v-el:list" => true, ":data-board" => "boardId" }
......
%li.card{ ":data-issue" => "issue.id", "v-for" => "issue in issues | filterBy query in 'title' | filterBy customFilter", "track-by" => "id" }
%h4.card-title
%a{ href: "#", ":title" => "issue.title" }
%a{ ":href" => "issueLinkBase + '/' + issue.id", ":title" => "issue.title" }
{{ issue.title }}
.card-footer
%span.card-number
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment