issue: styling class on closed rows
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 20 Nov 2019 12:57:01 +0000 (13:57 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 20 Nov 2019 12:57:01 +0000 (13:57 +0100)
Link tag does not cover metadata.  Keep strike-through for compatibility,
but with equivalent <s> as <strike> has been deprecated in HTML5.

issue/index.php

index fb6a84e8dfbe6aa04a1db12ca98e7115d3abd887..388db5d836acce3019b375e8b04e636ffd5a9e08 100644 (file)
@@ -67,14 +67,15 @@ if ($id == 'feed') {
 ob_start();
 print '<ul>';
 while ($row = $query->fetch()) {
-       printf('<li><a href="%s">%s <small class="date">%s</small>%s</a>',
+       printf('<li%s><a href="%s">%s <small class="date">%s</small>%s</a>',
+               $row->closed ? ' class="disabled"' : '',
                "/$Page/{$row->id}/{$row->link}",
-               sprintf($row->closed ? '<strike>%s</strike>' : '%s',
+               sprintf($row->closed ? '<s>%s</s>' : '%s',
                        htmlspecialchars($row->subject)),
                showdate(array_slice(preg_split('/\D/', $row->updated), 0, 3)),
                implode(' ', [
                        $row->replycount ? sprintf('<span class=right>+%d</span>', $row->replycount) : '',
-                       isset($row->assign) ? ' <em class="right">'.$row->assign.'</em>' : '',
+                       isset($row->assign) ? '<em class="right">'.$row->assign.'</em>' : '',
                ])
        );
        print "</li>\n";