BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
_label_page_create.html.haml
app/views/shared/issuable/_label_page_create.html.haml
+2
-1
_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'
)
}
...
...
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
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