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/frontend/app/components/wp-panels/activity-panel/activity-panel.directive.html

29 lines
1.2 KiB

<work-package-comment work-package="workPackage"
activities="activities"
autocomplete-path="{{ autocompletePath }}">
<div class="detail-activity">
<ul class="work-package-details-activities-list">
<li ng-repeat="activity in activities"
class="work-package-details-activities-activity"
ng-init="activityNo = activitiesSortedInDescendingOrder && activities.length - $index || $index + 1;
9 years ago
isInitial = isInitialActivity(activities, activity, activityNo, activitiesSortedInDescendingOrder);
currentDate = (activity.props.createdAt|date:'longDate');
currentAnchor = 'note-' + activityNo">
<h3 class="activity-date"
ng-if="currentDate !== (activities[$index-1].props.createdAt | date:'longDate')"
ng-bind="currentDate"/>
<activity-entry work-package="workPackage"
activity="activity"
activity-no="activityNo"
is-initial="isInitial"
autocomplete-path="autocompletePath">
</activity-entry>
</div>
</li>
</ul>
</div>
</work-package-comment>