Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
736292c9
Commit
736292c9
authored
May 14, 2018
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add unsub tooltip (broken)
parent
89271745
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
app/views/shared/_label.html.haml
app/views/shared/_label.html.haml
+2
-1
No files found.
app/views/shared/_label.html.haml
View file @
736292c9
...
...
@@ -4,6 +4,7 @@
-
toggle_subscription_path
=
toggle_subscription_label_path
(
label
,
@project
)
if
current_user
-
show_label_merge_requests_link
=
show_label_issuables_link?
(
label
,
:merge_requests
,
project:
@project
)
-
show_label_issues_link
=
show_label_issuables_link?
(
label
,
:issues
,
project:
@project
)
-
unsubscribe_tooltip_title
=
status
.
subscribed?
(
current_user
,
label
.
group
)
?
'Unsubscribe at group level'
:
status
.
subscribed?
(
current_user
,
@project
)
?
'Unsubscribe at project level'
:
'Unsubscribe'
%li
.label-list-item
{
id:
label_css_id
,
data:
{
id:
label
.
id
}
}
=
render
"shared/label_row"
,
label:
label
,
subject:
subject
...
...
@@ -44,7 +45,7 @@
-
if
current_user
%li
.inline.label-subscription
-
if
can_subscribe_to_label_in_different_levels?
(
label
)
%button
.js-unsubscribe-button.label-subscribe-button.btn.btn-default
{
class:
(
'hidden'
if
status
.
unsubscribed?
),
data:
{
url:
toggle_subscription_path
}
}
%button
.js-unsubscribe-button.label-subscribe-button.btn.btn-default
{
class:
(
'hidden'
if
status
.
unsubscribed?
),
data:
{
url:
toggle_subscription_path
,
toggle:
'tooltip'
},
title:
unsubscribe_tooltip_title
,
test:
status
.
subscribed?
(
current_user
,
label
.
group
),
test_two:
status
.
subscribed?
}
%span
Unsubscribe
.dropdown.dropdown-group-label
{
class:
(
'hidden'
unless
status
.
unsubscribed?
)
}
%button
.label-subscribe-button.btn.btn-default
{
data:
{
toggle:
'dropdown'
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment