Refactor projects fetching commits from Github

This commit is contained in:
Alex Cabal 2024-12-15 14:51:48 -06:00
parent 323b8030b9
commit 3b9ea27391
3 changed files with 110 additions and 58 deletions

View file

@ -20,6 +20,7 @@ $includeStatus = $includeStatus ?? true;
<th scope="col">Status</th>
<? } ?>
<th/>
<th/>
</tr>
</thead>
<tbody>
@ -38,10 +39,10 @@ $includeStatus = $includeStatus ?? true;
<? } ?>
</td>
<td>
<?= $project->LastCommitTimestamp?->format(Enums\DateTimeFormat::ShortDate->value) ?>
<?= $project->Started->format(Enums\DateTimeFormat::ShortDate->value) ?>
</td>
<td>
<?= $project->Started->format(Enums\DateTimeFormat::ShortDate->value) ?>
<?= $project->LastCommitTimestamp?->format(Enums\DateTimeFormat::ShortDate->value) ?>
</td>
<? if($includeStatus){ ?>
<td class="status">
@ -51,6 +52,11 @@ $includeStatus = $includeStatus ?? true;
<td>
<a href="<?= Formatter::EscapeHtml($project->VcsUrl) ?>">GitHub</a>
</td>
<td>
<? if($project->DiscussionUrl !== null){ ?>
<a href="<?= Formatter::EscapeHtml($project->DiscussionUrl) ?>">Discussion</a>
<? } ?>
</td>
</tr>
<? } ?>
</tbody>