diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-04-26 08:14:45 -0500 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-05-25 14:48:11 -0500 |
commit | 305a395e273fc534f0a9cdae10f8d4cfc9c332ff (patch) | |
tree | df8de46e494f463c778803ba07e9c458e93194b5 | |
parent | b9a709183ae42d858fc1f1fe4345c304c085698b (diff) | |
download | gitlab-ce-305a395e273fc534f0a9cdae10f8d4cfc9c332ff.tar.gz |
Add title
-rw-r--r-- | app/views/projects/boards/components/sidebar/_notifications.html.haml | 5 | ||||
-rw-r--r-- | app/views/shared/issuable/_sidebar.html.haml | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/app/views/projects/boards/components/sidebar/_notifications.html.haml b/app/views/projects/boards/components/sidebar/_notifications.html.haml index 9a82f0df471..5801c3c7407 100644 --- a/app/views/projects/boards/components/sidebar/_notifications.html.haml +++ b/app/views/projects/boards/components/sidebar/_notifications.html.haml @@ -2,4 +2,7 @@ .block.light.subscription{ ":data-url" => "'#{namespace_project_issues_path(@project.namespace, @project)}/' + issue.id + '/toggle_subscription'" } %span.toggle-text.hide-collapsed.pull-left Notifications - %a.btn.toggle-button.pull-right.js-subscribe-button.issuable-subscribe-button.hide-collapsed{ type: "button", role="button", ":class" => "issue.subscribed ? 'is-subscribed' : 'is-unsubscribed'" } + %a.btn.toggle-button.pull-right.js-subscribe-button.issuable-subscribe-button.hide-collapsed.has-tooltip{ type: "button", + ":role" => "button", + ":class" => "issue.subscribed ? 'is-subscribed' : 'is-unsubscribed'", + ":title" => "issue.subscribed ? 'Subscribed' : 'Unsubscribed'" } diff --git a/app/views/shared/issuable/_sidebar.html.haml b/app/views/shared/issuable/_sidebar.html.haml index e5e1702c66b..4989bf71508 100644 --- a/app/views/shared/issuable/_sidebar.html.haml +++ b/app/views/shared/issuable/_sidebar.html.haml @@ -124,7 +124,10 @@ = icon('bell', 'aria-hidden': 'true', class: 'subscribed-icon') %span.toggle-text.hide-collapsed.pull-left Notifications - %a.btn.toggle-button.pull-right.js-subscribe-button.issuable-subscribe-button.hide-collapsed{ type: "button", role: "button", class: (subscribed ? "is-subscribed" : "is-unsubscribed") } + %a.btn.toggle-button.pull-right.js-subscribe-button.issuable-subscribe-button.hide-collapsed.has-tooltip{ type: "button", + role: "button", + class: (subscribed ? "is-subscribed" : "is-unsubscribed"), + title: (subscribed ? "Subscribed" : "Unsubscribed") } - project_ref = cross_project_reference(@project, issuable) .block.project-reference |