1
0
Fork 0

Add semantic markup to games on dashboard, remove redundant message

This commit is contained in:
Ainsley Ellis 2024-11-21 16:35:23 -05:00
parent 68ac0c3c38
commit ea00bf1e7c

View file

@ -30,9 +30,11 @@ include "partials/head.php"; ?>
'gameend' => DateTimeImmutable::createFromFormat('U', $game['gameend'])->setTimezone($time_zone),
];
?>
<article>
<article class="flow">
<header>
<h3><?= $game['name'] ?></h3>
<p><span>Status: </span><?= get_status_message($game['status_id']) ?></p>
</header>
<dl>
<?php if ($game['status_id'] === STATUS_ENROLLING) : ?>
<dt>Submissions</dt>
@ -55,7 +57,6 @@ include "partials/head.php"; ?>
<dd><span>Close: </span><time datetime="<?= $dates['gameend']->format('c') ?>"><?= $dates['gameend']->format('l, j F, o \a\t h:i A T') ?></time></dd>
<?php endif; ?>
<?php if ($game['status_id'] === STATUS_REVIEW) : ?>
<p>Submissions are currently under review.</p>
<p>Round One begins on <time datetime="<?= $dates['onestart']->format('c') ?>"><?= $dates['onestart']->format('l, j F, o \a\t h:i A T') ?></time></p>
<?php endif; ?>
</dl>