Skip to content

Commit 9e0bf2f

Browse files
committed
refactor : display task description instead of command in task list
1 parent a6b2cc2 commit 9e0bf2f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/views/tasks/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<table class="uk-table uk-table-responsive" cellpadding="0" cellspacing="0" class="mb1">
2020
<thead>
2121
<tr>
22-
<th>Command</th>
22+
<th>Description</th>
2323
<th>Average Runtime</th>
2424
<th>Last Run</th>
2525
<th>Next Run</th>
@@ -31,7 +31,7 @@
3131
<tr class="{{$task->is_active ?: 'uk-text-danger'}}">
3232
<td>
3333
<a href="{{route('totem.task.view', $task)}}">
34-
{{$task->command}}
34+
{{str_limit($task->description, 30)}}
3535
</a>
3636
<span class="uk-float-right uk-hidden@s uk-text-muted">Command</span>
3737
</td>

resources/views/tasks/view.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<ul class="uk-list uk-list-striped">
1414
<li>
1515
<span class="uk-text-muted uk-float-right">Description</span>
16-
<span class="uk-float-left">{{$task->description}}</span>
16+
<span class="uk-float-left">{{str_limit($task->description, 80)}}</span>
1717
</li>
1818
<li>
1919
<span class="uk-text-muted uk-float-right">Command</span>

0 commit comments

Comments
 (0)