OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/assets/javascripts/angular/directives/timelines/timeline-table-directive.js

18 lines
605 B

angular.module('openproject.timelines.directives')
.directive('timelineTable', [function() {
return {
restrict: 'E',
replace: true,
templateUrl: '/templates/timelines/timeline_table.html',
scope: true,
link: function(scope, element, attributes) {
scope.columns = scope.timeline.options.columns;
scope.height = scope.timeline.decoHeight();
scope.excludeEmpty = scope.timeline.options.exclude_empty === 'yes';
scope.isGrouping = scope.timeline.isGrouping();
scope.hideTreeRoot = scope.isGrouping || scope.timeline.options.hide_tree_root;
}
};
}]);