diff options
author | Phil Hughes <me@iamphill.com> | 2016-10-04 14:24:49 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-10-06 11:00:01 +0100 |
commit | da8998f940fde0b193261c6d357af9d701919293 (patch) | |
tree | e7896ce00b8ddcb63bd6a8e2bd1c7a3260d9fb52 /app/views/projects/boards/components | |
parent | 284af578f37ffb9ec7bcc44ae9d8897be6e68d2f (diff) | |
download | gitlab-ce-da8998f940fde0b193261c6d357af9d701919293.tar.gz |
Changed how button is hidden when blank list
Added for attribute to title label
Diffstat (limited to 'app/views/projects/boards/components')
-rw-r--r-- | app/views/projects/boards/components/_board.html.haml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/app/views/projects/boards/components/_board.html.haml b/app/views/projects/boards/components/_board.html.haml index 069b8bd9e55..f2c9ac809c1 100644 --- a/app/views/projects/boards/components/_board.html.haml +++ b/app/views/projects/boards/components/_board.html.haml @@ -12,14 +12,14 @@ %header.board-header{ ":class" => "{ 'has-border': list.label }", ":style" => "{ borderTopColor: (list.label ? list.label.color : null) }" } %h3.board-title.js-board-handle{ ":class" => "{ 'user-can-drag': (!disabled && !list.preset) }" } {{ list.title }} - .board-issue-count-holder.pull-right.clearfix - %span.board-issue-count.pull-left{ "v-if" => "list.type !== 'blank'", - ":class" => "{ 'has-btn': list.type !== 'done' }" } + .board-issue-count-holder.pull-right.clearfix{ "v-if" => "list.type !== 'blank'" } + %span.board-issue-count.pull-left{ ":class" => "{ 'has-btn': list.type !== 'done' }" } {{ list.issuesSize }} - if can? current_user, :create_issue, @project %button.btn.btn-small.btn-default.pull-right{ type: "button", "@click" => "showNewIssueForm", - "v-if" => "list.type !== 'done' && list.type !== 'blank'" } + "v-if" => "list.type !== 'done'", + "aria-label" => "Show new issue form" } = icon("plus") - if can?(current_user, :admin_list, @project) %board-delete{ "inline-template" => true, @@ -44,11 +44,12 @@ "v-show" => "list.type !== 'done' && showIssueForm" } .card.board-new-issue-form %form{ "@submit" => "submit($event)" } - %label.label-light + %label.label-light{ ":for" => "list.id + '-title'" } Title %input.form-control{ type: "text", "v-model" => "title", - "v-el:input" => true } + "v-el:input" => true, + ":id" => "list.id + '-title'" } .clearfix.prepend-top-10 %button.btn.btn-success.pull-left{ type: "submit", ":disabled" => "title === ''" } |