| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- /**
- * @var Project[] $projects
- */
- ?>
- <div class="container mt-3 py-4">
- <h2><?=htmlspecialchars(__("Test Results"))?></h2>
- <h3><?=htmlspecialchars(__("Select Project"))?></h3>
- <?php
- if(empty($projects)) {
- ?>
- <div class="alert alert-info">
- <?php
- echo __("No projects to display.");
- ?>
- </div>
- <?php
- }
- else {
- ?>
- <table class="table table-bordered">
- <col style="width: 40%;">
- <col style="width: 15%;">
- <col style="width: 15%;">
- <col style="width: 15%;">
- <col style="width: 15%;">
- <thead>
- <th><?=htmlspecialchars(__("Name"))?></th>
- <th><?=htmlspecialchars(__("Report Month"))?></th>
- <th><?=htmlspecialchars(__("Test Count"))?></th>
- <th><?=htmlspecialchars(__("Pass / Fail"))?></th>
- <th><?=htmlspecialchars(__("Pass Rate"))?></th>
- </thead>
- <tbody>
- <?php
- foreach($projects as $project) {
- $url = $project->getTestResultsUrl();
- ?>
- <tr>
- <td><a href="<?=htmlspecialchars($url)?>"><?=$project->getNameHtml()?></a></td>
- <td><?=$project->getDisplayReportMonth()?></td>
- <td><?=$project->getTestCount()?></td>
- <td><?=$project->getPassCount()?> / <?=$project->getFailCount()?></td>
- <td><?=$project->getPassRate()?></td>
- </tr>
- <?php
- }
- ?>
- </tbody>
- </table>
- <?php
- }
- ?>
- </div>
|