<?php
use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this \yii\web\View */
?>

<ul class="switchtab">
    <li <?= $this->context->action->id == 'index' ? 'class="active"' : '' ?> ><a href="<?= Url::to(['index']) ?>"><i class="icon-flag"></i>进行中</a></li>
    <li <?= $this->context->action->id == 'my-task' ? 'class="active"' : '' ?> ><a href="<?= Url::to(['my-task']) ?>"><i class="icon-tasks"></i>我的任务</a></li>
</ul>
