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
Boxiang Sun
gitlab-ce
Commits
02302c82
Commit
02302c82
authored
Mar 08, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use label dropdown helper for rendering contextual string
parent
55734453
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
app/views/shared/issuable/_label_page_create.html.haml
app/views/shared/issuable/_label_page_create.html.haml
+2
-1
app/views/shared/issuable/_label_page_default.html.haml
app/views/shared/issuable/_label_page_default.html.haml
+4
-3
No files found.
app/views/shared/issuable/_label_page_create.html.haml
View file @
02302c82
-
subject
=
@project
||
@group
.dropdown-page-two.dropdown-new-label
.dropdown-page-two.dropdown-new-label
=
dropdown_title
(
"Create new label"
,
options:
{
back:
true
})
=
dropdown_title
(
create_label_title
(
subject
)
,
options:
{
back:
true
})
=
dropdown_content
do
=
dropdown_content
do
.dropdown-labels-error.js-label-error
.dropdown-labels-error.js-label-error
%input
#new_label_name
.default-dropdown-input
{
type:
"text"
,
placeholder:
_
(
'Name new label'
)
}
%input
#new_label_name
.default-dropdown-input
{
type:
"text"
,
placeholder:
_
(
'Name new label'
)
}
...
...
app/views/shared/issuable/_label_page_default.html.haml
View file @
02302c82
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
-
show_footer
=
local_assigns
.
fetch
(
:show_footer
,
true
)
-
show_footer
=
local_assigns
.
fetch
(
:show_footer
,
true
)
-
filter_placeholder
=
local_assigns
.
fetch
(
:filter_placeholder
,
'Search'
)
-
filter_placeholder
=
local_assigns
.
fetch
(
:filter_placeholder
,
'Search'
)
-
show_boards_content
=
local_assigns
.
fetch
(
:show_boards_content
,
false
)
-
show_boards_content
=
local_assigns
.
fetch
(
:show_boards_content
,
false
)
-
subject
=
@project
||
@group
.dropdown-page-one
.dropdown-page-one
=
dropdown_title
(
title
)
=
dropdown_title
(
title
)
-
if
show_boards_content
-
if
show_boards_content
...
@@ -17,11 +18,11 @@
...
@@ -17,11 +18,11 @@
-
if
can?
(
current_user
,
:admin_label
,
current_board_parent
)
-
if
can?
(
current_user
,
:admin_label
,
current_board_parent
)
%li
%li
%a
.dropdown-toggle-page
{
href:
"#"
}
%a
.dropdown-toggle-page
{
href:
"#"
}
=
_
(
'Create new label'
)
=
create_label_title
(
subject
)
%li
%li
=
link_to
labels_path
,
:"data-is-link"
=>
true
do
=
link_to
labels_path
,
:"data-is-link"
=>
true
do
-
if
show_create
&&
can?
(
current_user
,
:admin_label
,
current_board_parent
)
-
if
show_create
&&
can?
(
current_user
,
:admin_label
,
current_board_parent
)
=
_
(
'Manage labels'
)
=
manage_labels_title
(
subject
)
-
else
-
else
=
_
(
'View labels'
)
=
view_labels_title
(
subject
)
=
dropdown_loading
=
dropdown_loading
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