@if (team) {
@if (logoUrl) { } @else if (team.emoji) { } @else { }

{{ team.name }}

{{ (team.public ? 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.PUBLIC' : 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.PRIVATE') | translate }} @if (team.prefix) { {{ team.prefix }} }
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.MEMBERS_COUNT' | translate : { count: members.length } }} {{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.LIVE' | translate : { tracking: trackingNow, online: onlineNow } }}
@if (tags.length) {
@for (tag of tags; track $index) { {{ tag.name }} }
}
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.MEMBERS' | translate }}
{{ members.length }}
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.MANAGERS' | translate }}
{{ managers.length }} @if (managers.length) { {{ managers[0].name }}{{ managers.length > 1 ? ' +' + (managers.length - 1) : '' }} }
{{ 'EMPLOYEES_PAGE.VIEW.PROJECTS' | translate }}
{{ projects.length }}
{{ 'SM_TABLE.TIME_TRACKING' | translate }}
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.OF_MEMBERS' | translate : { count: trackingEnabledCount, total: members.length } }}
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.CREATED' | translate }}
{{ createdOn || '—' }} @if (age) { {{ age }} }
@if (tab !== 'details') {
{{ rangeLabel }} @for (option of periods; track option) { {{ 'EMPLOYEES_PAGE.VIEW.PERIODS.' + option | translate }} }
}
}
@if (state === 'not-found') {

{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.NOT_FOUND' | translate }}

{{ 'ORGANIZATIONS_PAGE.TEAMS' | translate }}
} @else if (state === 'error') {

{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.LOAD_FAILED' | translate }}

} @else if (team) { @if (tab === 'overview') {
{{ 'EMPLOYEES_PAGE.VIEW.WORKED_TODAY' | translate }} {{ counts.failed ? '—' : formatDuration($safeNavigationMigration(counts.value?.todayDuration)) }} {{ 'EMPLOYEES_PAGE.VIEW.ACTIVITY_META' | translate : { value: formatPercent($safeNavigationMigration(counts.value?.todayActivities)) } }}
{{ 'EMPLOYEES_PAGE.VIEW.WORKED_PERIOD' | translate }} {{ counts.failed ? '—' : formatDuration($safeNavigationMigration(counts.value?.weekDuration)) }}
{{ 'EMPLOYEES_PAGE.VIEW.AVG_ACTIVITY' | translate }} {{ counts.failed ? '—' : formatPercent($safeNavigationMigration(counts.value?.weekActivities)) }}
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.ACTIVE_MEMBERS' | translate }} {{ memberStats.failed ? '—' : activeMembers }} {{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.ACTIVE_MEMBERS_META' | translate : { total: members.length } }}
{{ 'EMPLOYEES_PAGE.VIEW.OPEN_TASKS' | translate }} {{ tasks.failed ? '—' : taskSummary.open }} @if (taskSummary.overdue > 0) { } {{ 'EMPLOYEES_PAGE.VIEW.OPEN_TASKS_META' | translate : { progress: taskSummary.progress, overdue: taskSummary.overdue } }}
{{ 'EMPLOYEES_PAGE.VIEW.HOURS_WORKED' | translate }}
@if (!hours.failed && hoursSummary.total) { {{ 'EMPLOYEES_PAGE.VIEW.HOURS_META' | translate : { total: formatDuration(hoursSummary.total), average: formatDuration(hoursSummary.average) } }} }
@if (hours.failed) { } @else if (!hours.loading && !hoursSummary.total) { } @else { }
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.TIME_BY_MEMBER' | translate }}
{{ 'EMPLOYEES_PAGE.VIEW.PROJECTS' | translate }} @if (projectOverview.length) { {{ projectOverview.length }} }
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.PROJECTS_CAPTION' | translate }}
@if (!projectOverview.length) { } @else {
    @for (project of projectOverview; track project.id) {
  • }
}
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.TEAM_TASKS' | translate }} @if (!tasks.failed && taskSummary.open + taskSummary.done) { {{ taskSummary.open + taskSummary.done }} }
@if (!tasks.failed && taskSummary.open + taskSummary.done) {
@for (filter of taskFilters; track filter) { }
}
@if (tasks.failed) { } @else if (!tasks.loading && !(taskSummary.open + taskSummary.done)) { } @else if (visibleTasks.length) {
    @for (task of visibleTasks; track task.id) {
  • @for (person of task.people.slice(0, 3); track $index) { @if (person.avatarUrl) { } @else { } } @if (task.people.length > 3) { } @if (!task.people.length) { }
  • }
@if (filteredTasks.length > taskLimit) { } } @else if (!tasks.loading) {

{{ 'EMPLOYEES_PAGE.VIEW.NO_TASKS_IN_VIEW' | translate }}

}
{{ 'EMPLOYEES_PAGE.VIEW.TOP_TASKS' | translate }}
{{ 'EMPLOYEES_PAGE.VIEW.APPS_URLS' | translate }}
} @else if (tab === 'members') {
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.MEMBERS' | translate }} {{ members.length }}
{{ rangeLabel }}
@if (!members.length) { } @else {
@for (member of members; track member.id) { }
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.COLUMNS.MEMBER' | translate }} {{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.COLUMNS.ROLE' | translate }} {{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.COLUMNS.STATUS' | translate }} {{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.COLUMNS.CURRENT_TASK' | translate }} {{ 'SM_TABLE.TIME_TRACKING' | translate }} {{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.COLUMNS.TODAY' | translate }} {{ 'EMPLOYEES_PAGE.VIEW.COLUMNS.TIME' | translate }} {{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.COLUMNS.ACTIVITY' | translate }}
@if (member.avatarUrl) { } @else { } {{ member.name }} @if (member.position || member.email) { {{ member.position || member.email }} } {{ (member.isManager ? 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.ROLE.MANAGER' : 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.ROLE.MEMBER') | translate }} {{ 'EMPLOYEES_PAGE.VIEW.PRESENCE.' + member.presence.toUpperCase() | translate }} {{ member.activeTask || '—' }} {{ (member.isTrackingEnabled ? 'EMPLOYEES_PAGE.ENABLED' : 'EMPLOYEES_PAGE.DISABLED') | translate }} {{ memberStats.failed ? '—' : formatDuration($safeNavigationMigration(figuresOf(member)?.today)) }} {{ memberStats.failed ? '—' : formatDuration($safeNavigationMigration(figuresOf(member)?.duration)) }} @if (memberStats.failed) { — } @else { {{ formatPercent($safeNavigationMigration(figuresOf(member)?.activity)) }} }
}
} @else {
} }
@if (viewedTask) { } @if (viewedProject) {
{{ viewedProject.name }}
@if (projectFacts?.status || projectFacts?.isPublic !== undefined || projectFacts?.client) {

@if (projectFacts.status; as status) { {{ status.text }} } @if (projectFacts.isPublic !== undefined) { {{ (projectFacts.isPublic ? 'BUTTONS.PUBLIC' : 'BUTTONS.PRIVATE') | translate }} } @if (projectFacts.client) { {{ projectFacts.client }} }

}
{{ 'ORGANIZATIONS_PAGE.EDIT.EDIT_PROJECT' | translate }}
{{ 'EMPLOYEES_PAGE.VIEW.WORKED_PERIOD' | translate }}
{{ viewedProjectRow?.duration ? formatDuration(viewedProjectRow.duration) : '—' }}
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.MEMBERS' | translate }}
{{ projectFacts?.members ?? '—' }}
{{ 'ORGANIZATIONS_PAGE.EDIT.END_DATE' | translate }}
{{ projectFacts?.endDate || '—' }} @if (projectFacts?.due; as due) { {{ due.key | translate : { count: due.count } }} }
@if (projectBudget; as budget) {
{{ 'ORGANIZATIONS_PAGE.BUDGET' | translate }} @if (budget.over) { {{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.OVER_BUDGET' | translate : { value: formatHours(budget.usedHours - budget.budgetHours) } }} } @else { {{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.BUDGET_USED' | translate : { used: formatHours(budget.usedHours), budget: formatHours(budget.budgetHours) } }} }
}
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.PROJECT_PROGRESS' | translate }}
@if (projectProgress.failed) { } @else if (projectProgress.value && !projectProgress.value.total) { } @else if (projectProgress.value; as progress) {
{{ formatPercent(progress.percent) }} {{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.PROJECT_PROGRESS_META' | translate : { done: progress.done, total: progress.total } }}
@if (progress.done) { } @if (progress.progress) { }
{{ 'EMPLOYEES_PAGE.VIEW.TASK_FILTERS.DONE' | translate }}
{{ progress.done }}
{{ 'EMPLOYEES_PAGE.VIEW.TASK_FILTERS.PROGRESS' | translate }}
{{ progress.progress }}
{{ 'EMPLOYEES_PAGE.VIEW.TASK_FILTERS.OPEN' | translate }}
{{ progress.todo }}
}
@if (projectAttention.length) {
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.NEEDS_ATTENTION' | translate }} {{ projectAttention.length }}
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.NEEDS_ATTENTION_CAPTION' | translate }}
}
{{ 'TASKS_PAGE.HEADER' | translate }} @if (projectTasks.length) { {{ projectTasks.length }} }
@if (projectTasks.length) {
@for (filter of taskFilters; track filter) { }
}
@if (projectProgress.failed) { } @else if (!projectProgress.loading && !projectTasks.length) { } @else if (!projectProgress.loading && !filteredProjectTasks.length) { } @else { @if (filteredProjectTasks.length > projectTaskLimit) {
{{ 'EMPLOYEES_PAGE.VIEW.SHOWING' | translate : { shown: visibleProjectTasks.length, total: filteredProjectTasks.length } }}
} }
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.PROJECT_ACTIVITY' | translate }}
{{ rangeLabel }}
@if (projectHoursTotal) { {{ formatHours(projectHoursTotal) }} }
@if (projectHours.failed) { } @else if (!projectHours.loading && !projectHoursTotal) { } @else { }
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.TOP_CONTRIBUTORS' | translate }}
{{ 'ORGANIZATIONS_PAGE.EDIT.TEAMS_PAGE.VIEW.TOP_CONTRIBUTORS_CAPTION' | translate : { range: rangeLabel } }}
@if (projectContributors.failed) { } @else if (!projectContributors.loading && !projectContributors.value.length) { } @else {
    @for (person of projectContributors.value; track person.id) {
  1. @if (person.avatarUrl) { } @else { } @if (person.presence === 'tracking' || person.presence === 'online') { } {{ person.name }} @if (person.activity !== undefined) { {{ 'EMPLOYEES_PAGE.VIEW.ACTIVITY_META' | translate : { value: formatPercent(person.activity) } }} } {{ formatDuration(person.duration) }} {{ formatPercent(person.share) }}
  2. }
}
{{ 'EMPLOYEES_PAGE.VIEW.TOP_TASKS' | translate }}
@if (projectTopTasks.failed) { } @else if (!projectTopTasks.loading && !projectTopTasks.value.length) { } @else {
    @for (task of projectTopTasks.value; track task.id; let index = $index) {
  1. {{ task.name }} {{ formatDuration(task.duration) }} {{ formatPercent(task.share) }}
  2. }
}
}
@if (person.avatarUrl) { } @else { }
{{ person.name }} @if (person.email) { {{ person.email }} } {{ 'EMPLOYEES_PAGE.VIEW.PRESENCE.' + person.presence.toUpperCase() | translate }} @if (person.since) { {{ 'EMPLOYEES_PAGE.VIEW.MEMBER_SINCE' | translate }} {{ person.since }} } @if (person.bio) {

{{ person.bio }}

} @if (person.id) { {{ 'EMPLOYEES_PAGE.VIEW.VIEW_PROFILE' | translate }} }
@if (delta.percent !== null) { {{ delta.percent }}% } @else { — } {{ 'EMPLOYEES_PAGE.VIEW.VS_PREVIOUS.' + period | translate }} @if (panel.failed) { } @else if (!panel.loading && !panel.value.length) { } @else { @for (row of panel.value; track row.id) { }
{{ column | translate }} {{ 'EMPLOYEES_PAGE.VIEW.COLUMNS.TIME' | translate }}
{{ row.name }} @if (row.meta) { {{ row.meta }} } {{ formatDuration(row.duration) }}
}
{{ title | translate }}
@if (fields.length) {
@for (field of fields; track field.label) {
{{ field.label | translate }}
@if (field.swatch) { } @if (field.href) { {{ field.value }} } @else { {{ field.value }} }
}
} @else {

{{ 'EMPLOYEES_PAGE.VIEW.PROFILE.NOT_PROVIDED' | translate }}

}

{{ key | translate }}

{{ 'EMPLOYEES_PAGE.VIEW.UNAVAILABLE' | translate }}