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
979dedba
Commit
979dedba
authored
Apr 11, 2016
by
Arinde Eniola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make milestone labels in labels tab similar to that of the labels page
parent
5999fec7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
13 deletions
+25
-13
app/assets/stylesheets/pages/labels.scss
app/assets/stylesheets/pages/labels.scss
+18
-7
app/views/shared/milestones/_labels_tab.html.haml
app/views/shared/milestones/_labels_tab.html.haml
+7
-6
No files found.
app/assets/stylesheets/pages/labels.scss
View file @
979dedba
...
@@ -79,19 +79,30 @@
...
@@ -79,19 +79,30 @@
color
:
$white-light
;
color
:
$white-light
;
}
}
@mixin
labels-mobile
{
@media
(
max-width
:
$screen-xs-min
)
{
display
:
block
;
width
:
100%
;
margin-left
:
0
;
padding
:
10px
0
;
}
}
.manage-labels-list
{
.manage-labels-list
{
.prepend-left-10
{
.prepend-left-10
,
.prepend-description-left
{
display
:
inline-block
;
display
:
inline-block
;
width
:
40%
;
width
:
40%
;
vertical-align
:
middle
;
vertical-align
:
middle
;
@media
(
max-width
:
$screen-xs-min
)
{
@include
labels-mobile
;
display
:
block
;
}
width
:
100%
;
margin-left
:
0
;
.prepend-description-left
{
padding
:
10px
0
;
width
:
57%
;
}
@include
labels-mobile
;
}
}
.pull-info-right
{
.pull-info-right
{
...
...
app/views/shared/milestones/_labels_tab.html.haml
View file @
979dedba
...
@@ -4,15 +4,16 @@
...
@@ -4,15 +4,16 @@
%li
%li
%span
.label-row
%span
.label-row
=
link_to
milestones_label_path
(
options
)
do
%span
.label-name
-
render_colored_label
(
label
,
tooltip:
false
)
=
link_to
milestones_label_path
(
options
)
do
%span
.prepend-left-10
-
render_colored_label
(
label
,
tooltip:
false
)
%span
.prepend-description-left
=
markdown
(
label
.
description
,
pipeline: :single_line
)
=
markdown
(
label
.
description
,
pipeline: :single_line
)
.pull-right
.pull-
info-
right
%s
trong
.issues-count
%s
pan
.append-right-20
=
link_to
milestones_label_path
(
options
.
merge
(
state:
'opened'
))
do
=
link_to
milestones_label_path
(
options
.
merge
(
state:
'opened'
))
do
-
pluralize
milestone_issues_by_label_count
(
@milestone
,
label
,
state: :opened
),
'open issue'
-
pluralize
milestone_issues_by_label_count
(
@milestone
,
label
,
state: :opened
),
'open issue'
%s
trong
.issues-count
%s
pan
.append-right-20
=
link_to
milestones_label_path
(
options
.
merge
(
state:
'closed'
))
do
=
link_to
milestones_label_path
(
options
.
merge
(
state:
'closed'
))
do
-
pluralize
milestone_issues_by_label_count
(
@milestone
,
label
,
state: :closed
),
'closed issue'
-
pluralize
milestone_issues_by_label_count
(
@milestone
,
label
,
state: :closed
),
'closed issue'
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