Added a sub feature flag to disable chore assignments when not needed

This commit is contained in:
Bernd Bestel
2019-09-26 17:20:25 +02:00
parent cf3217ada4
commit cf2e6f1039
9 changed files with 38 additions and 3 deletions

View File

@@ -35,7 +35,9 @@
<th class="border-right"></th>
<th>{{ $__t('Chore') }}</th>
<th>{{ $__t('Tracked time') }}</th>
@if(GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS)
<th>{{ $__t('Done by') }}</th>
@endif
</tr>
</thead>
<tbody class="d-none">
@@ -58,6 +60,7 @@
<span>{{ $choreLogEntry->tracked_time }}</span>
<time class="timeago timeago-contextual @if(FindObjectInArrayByPropertyValue($chores, 'id', $choreLogEntry->chore_id)->track_date_only == 1) timeago-date-only @endif" datetime="{{ $choreLogEntry->tracked_time }}"></time>
</td>
@if(GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS)
<td>
@if ($choreLogEntry->done_by_user_id !== null && !empty($choreLogEntry->done_by_user_id))
{{ GetUserDisplayName(FindObjectInArrayByPropertyValue($users, 'id', $choreLogEntry->done_by_user_id)) }}
@@ -65,6 +68,7 @@
{{ $__t('Unknown') }}
@endif
</td>
@endif
</tr>
@endforeach
</tbody>