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/public/templates/timelines/tree.html

29 lines
1.4 KiB

<tr ng-repeat="node in nodes" ng-class="{'tl-first-row': $first, 'tl-last-row': $last, 'tl-grouping': timeline.isGrouping(), 'tl-project-row': node.payload.is(Timeline.Project)}" ng-show="!node.parentNode || (node.ancestors | ancestorsExpanded)">
<td ng-if="timeline.isGrouping() && node.payload.is(Timeline.Project) && node.level === 0 && node.group !== nodes[$index-1].group" class="tl-grouping" colspan="{{timeline.options.columns.length + 1}}">
<span class="tl-word-ellipsis">
{{timeline.escape(node.payload.getFirstLevelGroupingName())}}
</span>
</td>
<td tree-node ng-class="['tl-first-column', 'tl-indent-' + node.level, node.childNodes.length > 0 && (node.isExpanded() && 'tl-expanded' || 'tl-collapsed')]">
<a ng-click="node.expanded = !node.expanded" ng-show="node.childNodes.length > 0">{{node.expanded && '-' || '+'}}</a>
<span class="tl-word-ellipsis">
<span>
<a data-modal title="{{node.text}}" ng-href"{{node.url}}" ng-class="{'tl-discreet-link': true, 'tl-project': node.payload.is(Timeline.Project)}">
{{node.text}}
</a>
</span>
</span>
</td>
<!--
<td ng-repeat="option in timeline.options.columns">
(typeof availableRows[option] === 'function') && availableRows[option].call(node.payload, node.payload) || availableRows.general.call(node.payload, node.payload, option)
</td>
-->
<td ng-repeat="option in timeline.options.columns">
{{node[option]}}
</td>
</tr>