Hide blank times on tasks

This commit is contained in:
Hillel Coren 2017-12-03 12:14:30 +02:00
parent 60f711ec8b
commit 8d110c2a4b
2 changed files with 10 additions and 7 deletions

View File

@ -2603,6 +2603,7 @@ $LANG = array(
'please_register' => 'Please register your account',
'processing_request' => 'Processing request',
'mcrypt_warning' => 'Warning: Mcrypt is deprecated, run <code>php artisan ninja:update-key --legacy=true</code> to update your cipher.',
'edit_times' => 'Edit Times',
);

View File

@ -72,6 +72,7 @@
<label for="simple-time" class="control-label col-lg-4 col-sm-4">
</label>
<div class="col-lg-8 col-sm-8" style="padding-top: 10px">
@if ($task->getStartTime())
<p>{{ $task->getStartTime() }} -
@if (Auth::user()->account->timezone_id)
{{ $timezone }}
@ -79,13 +80,14 @@
{!! link_to('/settings/localization?focus=timezone_id', $timezone, ['target' => '_blank']) !!}
@endif
<p/>
@endif
@if ($task->hasPreviousDuration())
{{ trans('texts.duration') . ': ' . Utils::formatTime($task->getDuration()) }}<br/>
@endif
@if (!$task->is_running)
<p>{!! Button::primary(trans('texts.edit_details'))->withAttributes(['onclick'=>'showTimeDetails()'])->small() !!}</p>
<p>{!! Button::primary(trans('texts.edit_times'))->withAttributes(['onclick'=>'showTimeDetails()'])->small() !!}</p>
@endif
</div>
</div>