{{ goal.name }}

{{ 'GOALS_PAGE.SESSION' | translate }}: {{ goal.deadline }}

{{ goal.description?.trim() ? goal.description : ('GOALS_PAGE.NO_DESCRIPTION' | translate) }}

{{ 'GOALS_PAGE.PROGRESS' | translate }} {{ goal.progress }}%
@if (goal.keyResults.length == 0) {
{{ 'GOALS_PAGE.MESSAGE.NO_KEY_RESULT' | translate }}
} @else {
    @for (keyResult of goal.keyResults; track keyResult; let i = $index) {
  • {{ keyResult.name }} {{ keyResult.progress }}%
  • }
}
@if (updates.length == 0) {
{{ 'GOALS_PAGE.MESSAGE.NO_UPDATES' | translate }}
} @else {
    @for (update of updates; track update) {
  • {{ update.createdAt | date }}
    {{ 'GOALS_PAGE.UPDATE' | translate }}: {{ update.update }} @if (update.status) { {{ update.status }} } {{ 'GOALS_PAGE.PROGRESS' | translate }}: {{ update.progress }}%
  • }
}
@if (!goal.alignedKeyResult) {
{{ 'GOALS_PAGE.MESSAGE.NO_ALIGNMENT' | translate }}
} @else {
  • {{ goal.alignedKeyResult.goal.name }} {{ goal.alignedKeyResult.goal.progress }}%
  • {{ goal.alignedKeyResult.name }} {{ goal.alignedKeyResult.progress }}%
  • {{ goal.name }} {{ goal.progress }}%
}
@if (commentsLoadError) { } @else if (comments.length == 0) {
{{ 'GOALS_PAGE.MESSAGE.NO_COMMENTS' | translate }}
} @else {
    @for (thread of threads; track thread.comment.id) { @let open = openThreadId === thread.comment.id; @let latest = thread.replies[thread.replies.length - 1];
  • {{ authorName(thread.comment) }} {{ thread.comment.createdAt | date : 'short' }}

    {{ thread.comment.comment }}

    @if (open || thread.replies.length) {
    {{ thread.comment.comment }}
    @if (!open) {
    @if (latest) { {{ authorName(latest) }} {{ latest.comment }} {{ timeAgo(latest.createdAt) }} } @else { {{ 'GOALS_PAGE.COMMENT_THREAD.NO_MESSAGES' | translate }} }
    } @else { @if (thread.replies.length) {
      @for (reply of thread.replies; track reply.id) {
    • {{ authorName(reply) }} {{ reply.createdAt | date : 'short' }}

      {{ reply.comment }}

      @if (canDelete(reply)) {
      }
    • }
    } @else {
    {{ 'GOALS_PAGE.COMMENT_THREAD.NO_MESSAGES' | translate }}
    }
    }
    }
  • }
} @if (canDelete(comment)) { @if (confirmingDeleteId === comment.id) { {{ 'GOALS_PAGE.COMMENT_THREAD.DELETE_CONFIRM' | translate }} } @else { } }