Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | |
0.00% |
0 / 14 |
<?php | |
/** | |
* @link https://www.humhub.org/ | |
* @copyright Copyright (c) 2018 HumHub GmbH & Co. KG | |
* @license https://www.humhub.com/licences | |
* | |
*/ | |
/* @var $task \humhub\modules\tasks\models\Task */ | |
/* @var $filterResult boolean */ | |
?> | |
<?php if (/*$task->hasItems()*/ true) : ?> | |
<!-- Progress Bar --> | |
<?php | |
$percent = round($task->getPercent()); | |
if ($filterResult) | |
$divID = "task_progress_" . $task->id . "_filter"; | |
else | |
$divID = "task_progress_" . $task->id; | |
$color = "progress-bar-info"; | |
?> | |
<div class="progress"> | |
<div id="<?= $divID; ?>" | |
class="progress-bar <?= $color; ?>" | |
role="progressbar" | |
aria-valuenow="<?= $percent; ?>" aria-valuemin="0" aria-valuemax="100" | |
style="width: 0%"> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
$('#<?= $divID ?>').css('width', '<?= $percent; ?>%'); | |
</script> | |
<?php else : ?> | |
<?php endif; ?> |