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
b14dcfd1
Commit
b14dcfd1
authored
Apr 18, 2018
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use cards for label list
parent
d8dd75ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
app/assets/stylesheets/pages/labels.scss
app/assets/stylesheets/pages/labels.scss
+14
-0
app/views/projects/labels/index.html.haml
app/views/projects/labels/index.html.haml
+2
-2
No files found.
app/assets/stylesheets/pages/labels.scss
View file @
b14dcfd1
...
@@ -143,6 +143,10 @@
...
@@ -143,6 +143,10 @@
cursor
:
move
;
cursor
:
move
;
cursor
:
-
webkit-grab
;
cursor
:
-
webkit-grab
;
cursor
:
-
moz-grab
;
cursor
:
-
moz-grab
;
margin-bottom
:
5px
;
padding
:
11px
10px
11px
$gl-padding
;
border-radius
:
$border-radius-default
;
&
:active
{
&
:active
{
cursor
:
-
webkit-grabbing
;
cursor
:
-
webkit-grabbing
;
...
@@ -152,6 +156,10 @@
...
@@ -152,6 +156,10 @@
&
.sortable-ghost
{
&
.sortable-ghost
{
opacity
:
0
.3
;
opacity
:
0
.3
;
}
}
.prioritized-labels
&
{
box-shadow
:
0
1px
2px
$issue-boards-card-shadow
;
}
}
}
.btn-action
{
.btn-action
{
...
@@ -319,3 +327,9 @@
...
@@ -319,3 +327,9 @@
font-size
:
$label-font-size
;
font-size
:
$label-font-size
;
}
}
}
}
.labels-container
{
background-color
:
$gray-light
;
border-radius
:
$border-radius-default
;
padding
:
$gl-padding
$gl-padding-8
;
}
\ No newline at end of file
app/views/projects/labels/index.html.haml
View file @
b14dcfd1
...
@@ -17,12 +17,12 @@
...
@@ -17,12 +17,12 @@
=
link_to
new_project_label_path
(
@project
),
class:
"btn btn-new"
do
=
link_to
new_project_label_path
(
@project
),
class:
"btn btn-new"
do
New label
New label
.labels
.labels
-container.prepend-top-5
-
if
can_admin_label
-
if
can_admin_label
-# Only show it in the first page
-# Only show it in the first page
-
hide
=
@available_labels
.
empty?
||
(
params
[
:page
].
present?
&&
params
[
:page
]
!=
'1'
)
-
hide
=
@available_labels
.
empty?
||
(
params
[
:page
].
present?
&&
params
[
:page
]
!=
'1'
)
.prioritized-labels
{
class:
(
'hide'
if
hide
)
}
.prioritized-labels
{
class:
(
'hide'
if
hide
)
}
%h5
Prioritized Labels
%h5
.prepend-top-0
Prioritized Labels
%ul
.content-list.manage-labels-list.js-prioritized-labels
{
"data-url"
=>
set_priorities_project_labels_path
(
@project
)
}
%ul
.content-list.manage-labels-list.js-prioritized-labels
{
"data-url"
=>
set_priorities_project_labels_path
(
@project
)
}
#js-priority-labels-empty-state
{
class:
"#{'hidden' unless @prioritized_labels.empty?}"
}
#js-priority-labels-empty-state
{
class:
"#{'hidden' unless @prioritized_labels.empty?}"
}
=
render
'shared/empty_states/priority_labels'
=
render
'shared/empty_states/priority_labels'
...
...
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