Merge pull request #975 from ssteeltm/tickets_tasks-progress-bar

small adjustment to show 0 completed tasks
This commit is contained in:
Johnny 2024-06-24 10:59:14 -04:00 committed by GitHub
commit 897dcb179a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 3 deletions

View File

@ -448,9 +448,14 @@ $user_active_assigned_tickets = intval($row['total_tickets_assigned']);
<td>
<a href="ticket.php?ticket_id=<?php echo $ticket_id; ?>"><?php echo $ticket_subject; ?></a>
<?php if($task_count) { ?>
<div class="progress mt-2" style="height: 20px;">
<div class="progress-bar" style="width: <?php echo $tasks_completed_percent; ?>%;"><?php echo $completed_task_count; ?> / <?php echo $task_count; ?></div>
<?php if($task_count && $completed_task_count > 0) { ?>
<div class="progress mt-2" style="height: 20px;">
<div class="progress-bar" style="width: <?php echo $tasks_completed_percent; ?>%;"><?php echo $completed_task_count.' / '.$task_count; ?></div>
</div>
<?php } ?>
<?php if($task_count && $completed_task_count == 0) { ?>
<div class="mt-2" style="height: 20px; background-color:#e9ecef;">
<p class="text-center" ><?php echo $completed_task_count.' / '.$task_count; ?></p>
</div>
<?php } ?>
</td>