Commit 44c82ebb authored by Constance Okoghenun's avatar Constance Okoghenun

Added styles for milestone date range in milestone list

parent 8b2a6d41
...@@ -239,6 +239,12 @@ ...@@ -239,6 +239,12 @@
} }
} }
.milestone-range {
color: $gl-text-color-tertiary;
margin: $gl-bar-padding 0;
font-size: $tooltip-font-size;
}
@include media-breakpoint-down(xs) { @include media-breakpoint-down(xs) {
.milestone-banner-text, .milestone-banner-text,
.milestone-banner-link { .milestone-banner-link {
......
- if milestone.due_date || milestone.start_date - if milestone.due_date || milestone.start_date
%div .milestone-range
= milestone_date_range(milestone) = milestone_date_range(milestone)
- if milestone.expired? and not milestone.closed? - if milestone.expired? and not milestone.closed?
.status-box.status-box-expired Expired .status-box.status-box-expired Expired
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
- if @project - if @project
- if can?(current_user, :admin_milestone, milestone.project) and milestone.active? - if can?(current_user, :admin_milestone, milestone.project) and milestone.active?
- if @project.group - if @project.group
%button.js-promote-project-milestone-button.btn.btn-transparent.btn-sm.btn-grouped.has-tooltip{ title: _('Promote to Group Milestone'), %button.js-promote-project-milestone-button.btn.btn-blank.btn-sm.btn-grouped.has-tooltip{ title: _('Promote to Group Milestone'),
disabled: true, disabled: true,
type: 'button', type: 'button',
data: { url: promote_project_milestone_path(milestone.project, milestone), data: { url: promote_project_milestone_path(milestone.project, milestone),
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
target: '#promote-milestone-modal', target: '#promote-milestone-modal',
container: 'body', container: 'body',
toggle: 'modal' } } toggle: 'modal' } }
= sprite_icon('level-up', size: 12) = sprite_icon('level-up', size: 14)
= link_to 'Close Milestone', project_milestone_path(@project, milestone, milestone: {state_event: :close }), method: :put, remote: true, class: "btn btn-sm btn-close btn-grouped" = link_to 'Close Milestone', project_milestone_path(@project, milestone, milestone: {state_event: :close }), method: :put, remote: true, class: "btn btn-sm btn-close btn-grouped"
- unless milestone.active? - unless milestone.active?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment