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
Tatuya Kamada
gitlab-ce
Commits
6d40eee5
Commit
6d40eee5
authored
Mar 18, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added label color box in dropdown
parent
8d147219
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
app/assets/javascripts/labels_select.js.coffee
app/assets/javascripts/labels_select.js.coffee
+3
-0
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+7
-7
No files found.
app/assets/javascripts/labels_select.js.coffee
View file @
6d40eee5
...
@@ -78,8 +78,11 @@ class @LabelsSelect
...
@@ -78,8 +78,11 @@ class @LabelsSelect
else
else
selected
=
if
label
.
title
is
selectedLabel
then
'is-active'
else
''
selected
=
if
label
.
title
is
selectedLabel
then
'is-active'
else
''
color
=
if
label
.
color
?
then
"<span class='dropdown-label-box' style='background-color:
#{
label
.
color
}
'></span>"
else
""
"<li>
"<li>
<a href='#' class='
#{
selected
}
'>
<a href='#' class='
#{
selected
}
'>
#{
color
}
#{
label
.
title
}
#{
label
.
title
}
</a>
</a>
</li>"
</li>"
...
...
app/assets/stylesheets/framework/dropdowns.scss
View file @
6d40eee5
...
@@ -354,11 +354,11 @@
...
@@ -354,11 +354,11 @@
}
}
}
}
.dropdown-
menu-labels
{
.dropdown-
label-box
{
.label
{
position
:
relative
;
position
:
relative
;
top
:
3px
;
width
:
30px
;
display
:
inline-block
;
margin-right
:
5
px
;
width
:
20
px
;
text-indent
:
-99999
px
;
height
:
16
px
;
}
border-radius
:
3px
;
}
}
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