make milestone labels in labels tab similar to that of the labels page
This commit is contained in:
parent
5999fec7a3
commit
979dedba8a
2 changed files with 25 additions and 13 deletions
|
@ -79,13 +79,7 @@
|
|||
color: $white-light;
|
||||
}
|
||||
|
||||
.manage-labels-list {
|
||||
|
||||
.prepend-left-10 {
|
||||
display: inline-block;
|
||||
width: 40%;
|
||||
vertical-align: middle;
|
||||
|
||||
@mixin labels-mobile {
|
||||
@media (max-width: $screen-xs-min) {
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
@ -94,6 +88,23 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.manage-labels-list {
|
||||
|
||||
.prepend-left-10, .prepend-description-left {
|
||||
display: inline-block;
|
||||
width: 40%;
|
||||
vertical-align: middle;
|
||||
|
||||
@include labels-mobile;
|
||||
}
|
||||
|
||||
.prepend-description-left {
|
||||
width: 57%;
|
||||
|
||||
@include labels-mobile;
|
||||
}
|
||||
|
||||
.pull-info-right {
|
||||
float: right;
|
||||
|
||||
|
|
|
@ -4,15 +4,16 @@
|
|||
|
||||
%li
|
||||
%span.label-row
|
||||
%span.label-name
|
||||
= link_to milestones_label_path(options) do
|
||||
- render_colored_label(label, tooltip: false)
|
||||
%span.prepend-left-10
|
||||
%span.prepend-description-left
|
||||
= markdown(label.description, pipeline: :single_line)
|
||||
|
||||
.pull-right
|
||||
%strong.issues-count
|
||||
.pull-info-right
|
||||
%span.append-right-20
|
||||
= link_to milestones_label_path(options.merge(state: 'opened')) do
|
||||
- pluralize milestone_issues_by_label_count(@milestone, label, state: :opened), 'open issue'
|
||||
%strong.issues-count
|
||||
%span.append-right-20
|
||||
= link_to milestones_label_path(options.merge(state: 'closed')) do
|
||||
- pluralize milestone_issues_by_label_count(@milestone, label, state: :closed), 'closed issue'
|
||||
|
|
Loading…
Reference in a new issue