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
6 years ago
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_title
(
"Create new label"
,
options:
{
back:
true
})
=
dropdown_title
(
create_label_title
(
subject
)
,
options:
{
back:
true
})
=
dropdown_content
do
.dropdown-labels-error.js-label-error
%input
#new_label_name
.default-dropdown-input
{
type:
"text"
,
placeholder:
_
(
'Name new label'
)
}
...
...
This diff is collapsed.
Click to expand it.
app/views/shared/issuable/_label_page_default.html.haml
View file @
02302c82
...
...
@@ -3,6 +3,7 @@
-
show_footer
=
local_assigns
.
fetch
(
:show_footer
,
true
)
-
filter_placeholder
=
local_assigns
.
fetch
(
:filter_placeholder
,
'Search'
)
-
show_boards_content
=
local_assigns
.
fetch
(
:show_boards_content
,
false
)
-
subject
=
@project
||
@group
.dropdown-page-one
=
dropdown_title
(
title
)
-
if
show_boards_content
...
...
@@ -17,11 +18,11 @@
-
if
can?
(
current_user
,
:admin_label
,
current_board_parent
)
%li
%a
.dropdown-toggle-page
{
href:
"#"
}
=
_
(
'Create new label'
)
=
create_label_title
(
subject
)
%li
=
link_to
labels_path
,
:"data-is-link"
=>
true
do
-
if
show_create
&&
can?
(
current_user
,
:admin_label
,
current_board_parent
)
=
_
(
'Manage labels'
)
=
manage_labels_title
(
subject
)
-
else
=
_
(
'View labels'
)
=
view_labels_title
(
subject
)
=
dropdown_loading
This diff is collapsed.
Click to expand it.
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