Add semantic markup to games on dashboard, remove redundant message
This commit is contained in:
parent
68ac0c3c38
commit
ea00bf1e7c
1 changed files with 5 additions and 4 deletions
|
|
@ -30,9 +30,11 @@ include "partials/head.php"; ?>
|
||||||
'gameend' => DateTimeImmutable::createFromFormat('U', $game['gameend'])->setTimezone($time_zone),
|
'gameend' => DateTimeImmutable::createFromFormat('U', $game['gameend'])->setTimezone($time_zone),
|
||||||
];
|
];
|
||||||
?>
|
?>
|
||||||
<article>
|
<article class="flow">
|
||||||
<h3><?= $game['name'] ?></h3>
|
<header>
|
||||||
<p><span>Status: </span><?= get_status_message($game['status_id']) ?></p>
|
<h3><?= $game['name'] ?></h3>
|
||||||
|
<p><span>Status: </span><?= get_status_message($game['status_id']) ?></p>
|
||||||
|
</header>
|
||||||
<dl>
|
<dl>
|
||||||
<?php if ($game['status_id'] === STATUS_ENROLLING) : ?>
|
<?php if ($game['status_id'] === STATUS_ENROLLING) : ?>
|
||||||
<dt>Submissions</dt>
|
<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>
|
<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 endif; ?>
|
||||||
<?php if ($game['status_id'] === STATUS_REVIEW) : ?>
|
<?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>
|
<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; ?>
|
<?php endif; ?>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue