mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 02:46:46 -04:00
Refactor projects fetching commits from Github
This commit is contained in:
parent
323b8030b9
commit
3b9ea27391
3 changed files with 110 additions and 58 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue