<tr>
    <td>{$name}</td>
    <td>
        {if $task.status eq 'start'}
            <span class="label label-primary">
        {elseif $task.status eq 'in_progress'}
            <span class="label label-default">
        {elseif $task.status eq 'finished'}
            <span class="label label-success">
        {elseif $task.status eq 'pending'}
            <span class="label label-warning">
        {else}
            <span class="label label-danger">
        {/if}
        {$MGLANG->T('task_statuses',$task.status)}
        </span>
    </td>
    <td>
        {if $setRecord}
       <div class="progress" style="margin-bottom: 0px;">
            <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="{$setRecord.progress}" aria-valuemin="0" aria-valuemax="100" style="width: {$setRecord.progress}%;">{$setRecord.progress}%</div>
        </div>
        {/if}
    </td>
    <td>{$task.lastrun}</td>
   {* <td>{$task.next_run}</td> *}
    <td>{$task.date}</td>
    <td>
        <a class="btn btn-primary btn-inverse btn-icon-only" data-act="taskRunNow" data-query="id={$task.id}" title="{$MGLANG->T('run_now')}" data-confirm-body="{$MGLANG->T('task_run_now_confirm')}"><i class="fa fa-play"></i></a>
        <a class="btn btn-danger btn-inverse btn-icon-only" data-act="removeTask" data-query="id={$task.id}" title="{$MGLANG->T('remove')}" data-confirm-body="{$MGLANG->T('task_remove_confirm')}"><i class="fa fa-remove"></i></a>
    </td>
</tr>