|
|
|
@ -32,6 +32,7 @@ import {WorkPackageTimelineTableController} from 'core-components/wp-table/timel |
|
|
|
|
import * as moment from 'moment'; |
|
|
|
|
import {calculatePositionValueForDayCount, getTimeSlicesForHeader, TimelineViewParameters} from '../wp-timeline'; |
|
|
|
|
import Moment = moment.Moment; |
|
|
|
|
import {I18nService} from "core-app/modules/common/i18n/i18n.service"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const timelineHeaderCSSClass = 'wp-timeline--header-element'; |
|
|
|
@ -49,7 +50,8 @@ export class WorkPackageTimelineHeaderController implements OnInit { |
|
|
|
|
private innerHeader:JQuery; |
|
|
|
|
|
|
|
|
|
constructor(elementRef:ElementRef, |
|
|
|
|
public workPackageTimelineTableController:WorkPackageTimelineTableController) { |
|
|
|
|
readonly I18n:I18nService, |
|
|
|
|
readonly workPackageTimelineTableController:WorkPackageTimelineTableController) { |
|
|
|
|
|
|
|
|
|
this.$element = jQuery(elementRef.nativeElement); |
|
|
|
|
} |
|
|
|
@ -156,7 +158,8 @@ export class WorkPackageTimelineHeaderController implements OnInit { |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.renderTimeSlices(vp, 'quarter', 15, vp.dateDisplayStart, vp.dateDisplayEnd, (start, cell) => { |
|
|
|
|
cell.innerHTML = 'Q' + start.format('Q'); |
|
|
|
|
cell.innerHTML = this.I18n.t('js.timelines.quarter_label', |
|
|
|
|
{ quarter_number: start.format('Q') }); |
|
|
|
|
cell.classList.add('-top-border'); |
|
|
|
|
cell.style.height = '30px'; |
|
|
|
|
}); |
|
|
|
|