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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
28785488
Commit
28785488
authored
Jun 26, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missing hidden class when subscribed to a group label
parent
33b61858
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/views/shared/_label.html.haml
app/views/shared/_label.html.haml
+3
-3
No files found.
app/views/shared/_label.html.haml
View file @
28785488
-
label_css_id
=
dom_id
(
label
)
-
label_css_id
=
dom_id
(
label
)
-
status
=
label_subscription_status
(
label
,
@project
).
inquiry
if
current_user
-
status
=
label_subscription_status
(
label
,
@project
).
inquiry
if
current_user
-
subject
=
local_assigns
[
:subject
]
-
subject
=
local_assigns
[
:subject
]
-
toggle_subscription_path
=
toggle_subscription_label_path
(
label
,
@project
)
-
toggle_subscription_path
=
toggle_subscription_label_path
(
label
,
@project
)
if
current_user
%li
{
id:
label_css_id
,
data:
{
id:
label
.
id
}
}
%li
{
id:
label_css_id
,
data:
{
id:
label
.
id
}
}
=
render
"shared/label_row"
,
label:
label
=
render
"shared/label_row"
,
label:
label
...
@@ -56,9 +56,9 @@
...
@@ -56,9 +56,9 @@
=
icon
(
'chevron-down'
)
=
icon
(
'chevron-down'
)
%ul
.dropdown-menu
%ul
.dropdown-menu
%li
%li
%a
.js-subscribe-button
{
data:
{
url:
toggle_subscription_namespace_project_label_path
(
@project
.
namespace
,
@project
,
label
)
}
}
%a
.js-subscribe-button
{
class:
(
'hidden'
unless
status
.
unsubscribed?
),
data:
{
url:
toggle_subscription_namespace_project_label_path
(
@project
.
namespace
,
@project
,
label
)
}
}
Project level
Project level
%a
.js-subscribe-button
{
data:
{
url:
toggle_subscription_group_label_path
(
label
.
group
,
label
)
}
}
%a
.js-subscribe-button
{
class:
(
'hidden'
unless
status
.
unsubscribed?
),
data:
{
url:
toggle_subscription_group_label_path
(
label
.
group
,
label
)
}
}
Group level
Group level
-
else
-
else
%button
.js-subscribe-button.label-subscribe-button.btn.btn-default
{
type:
'button'
,
data:
{
status:
status
,
url:
toggle_subscription_path
}
}
%button
.js-subscribe-button.label-subscribe-button.btn.btn-default
{
type:
'button'
,
data:
{
status:
status
,
url:
toggle_subscription_path
}
}
...
...
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