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),
 | 
			
		||||
        ];
 | 
			
		||||
        ?>
 | 
			
		||||
        <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>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue