From 3397a8a6b5022c10701b6d9ef9b045ca05caf829 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 4 Oct 2016 14:46:01 +0100 Subject: Added tooltip to new issue button --- app/views/projects/boards/components/_board.html.haml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/projects/boards/components/_board.html.haml b/app/views/projects/boards/components/_board.html.haml index f2c9ac809c1..5cbc4eadcd0 100644 --- a/app/views/projects/boards/components/_board.html.haml +++ b/app/views/projects/boards/components/_board.html.haml @@ -16,10 +16,12 @@ %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", + %button.btn.btn-small.btn-default.pull-right.has-tooltip{ type: "button", "@click" => "showNewIssueForm", "v-if" => "list.type !== 'done'", - "aria-label" => "Show new issue form" } + "aria-label" => "Add an issue", + "title" => "Add an issue", + data: { placement: "top", container: "body" } } = icon("plus") - if can?(current_user, :admin_list, @project) %board-delete{ "inline-template" => true, -- cgit v1.2.1