@if (record) {
@if (canEdit) { }
} @if (record) {
{{ record.name }}
@if (record.description?.trim()) {

{{ record.description }}

}
{{ 'SM_TABLE.CURRENT_VALUE' | translate }}
{{ current ?? '—' }}
{{ 'SM_TABLE.TARGET_VALUE' | translate }}
{{ target ?? '—' }}
{{ 'GOALS_PAGE.FORM.LABELS.KPI_SHOULD_BE' | translate }}
{{ operatorKey ? (operatorKey | translate) : '—' }}
{{ 'GOALS_PAGE.KEY_RESULTS' | translate }}
{{ usesFailed ? '—' : uses.length }}
@if (usesFailed) { }
@if (!usesFailed) {
{{ 'GOALS_PAGE.KPI_VIEW.MEASURES' | translate }}
@if (uses.length) {
@for (use of uses; track use.id) { }
{{ 'SM_TABLE.NAME' | translate }} {{ 'KEY_RESULT_PAGE.FORM.LABELS.INITIAL_VALUE' | translate }} {{ 'KEY_RESULT_PAGE.FORM.LABELS.TARGET_VALUE' | translate }} {{ 'KEY_RESULT_PAGE.FORM.LABELS.DEADLINE' | translate }}
{{ use.name }} @if (use.template; as template) { {{ template.name }} } {{ use.from ?? '—' }} {{ use.to ?? '—' }} {{ use.deadlineKey ? (use.deadlineKey | translate) : '—' }}
} @else {
{{ 'GOALS_PAGE.KPI_VIEW.MEASURES_NONE' | translate }}
}
} @if (others.length) {
{{ 'GOALS_PAGE.KPI_VIEW.OTHER_TEMPLATES' | translate }} @if (othersCount > others.length) { {{ others.length }} / {{ othersCount }} }
@for (item of others; track item.id) { }
{{ 'SM_TABLE.NAME' | translate }} {{ 'GOALS_PAGE.FORM.LABELS.KPI_METRIC' | translate }} {{ 'SM_TABLE.CURRENT_VALUE' | translate }} {{ 'SM_TABLE.TARGET_VALUE' | translate }}
{{ item.name }} {{ item.metricKey ? (item.metricKey | translate) : '—' }} {{ item.current ?? '—' }} {{ item.target ?? '—' }}
}
{{ 'PIPELINES_PAGE.DETAILS' | translate }}
{{ 'GOALS_PAGE.FORM.LABELS.KPI_METRIC' | translate }}
{{ metricKey ? (metricKey | translate) : '—' }}
{{ 'SM_TABLE.CREATED_AT' | translate }}
{{ record.createdAt | dateTimeFormat }}
{{ 'SM_TABLE.LAST_UPDATED' | translate }}
{{ record.updatedAt | dateTimeFormat }}
}