summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-10-04 14:46:01 +0100
committerPhil Hughes <me@iamphill.com>2016-10-06 11:00:01 +0100
commit3397a8a6b5022c10701b6d9ef9b045ca05caf829 (patch)
treedb06df6afe3a469c4a4d551cc0b8f62a6ed4abd5
parent8af7c32526b9b22b62013a682352a0ea1d3345ae (diff)
downloadgitlab-ce-3397a8a6b5022c10701b6d9ef9b045ca05caf829.tar.gz
Added tooltip to new issue button
-rw-r--r--app/views/projects/boards/components/_board.html.haml6
1 files 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,