issue: display assignments in overview
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 7 Nov 2019 05:13:53 +0000 (06:13 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 9 Nov 2019 06:08:13 +0000 (07:08 +0100)
issue/index.php

index 6e13b13c99e7a54c84524f404f3c7daa4849a174..419156f70c6ed0909b171223755d1caeb21eaa69 100644 (file)
@@ -61,11 +61,12 @@ $query = $Db->query($sql, [$Page]);
 ob_start();
 print '<ul>';
 while ($row = $query->fetch()) {
-       printf('<li><a href="%s">%s <small class="date">%s</small></a>',
+       printf('<li><a href="%s">%s <small class="date">%s</small>%s</a>',
                "/$Page/{$row->id}/{$row->link}",
                sprintf($row->closed ? '<strike>%s</strike>' : '%s',
                        htmlspecialchars($row->subject)),
-               showdate(array_slice(preg_split('/\D/', $row->updated), 0, 3))
+               showdate(array_slice(preg_split('/\D/', $row->updated), 0, 3)),
+               isset($row->assign) ? ' <em class="right">'.$row->assign.'</em>' : ''
        );
        print "</li>\n";
 }