From 8dfcd9f98a316599cae7d94f56069c4ba79d2c93 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 20 Nov 2019 13:57:01 +0100 Subject: [PATCH] issue: styling class on closed rows Link tag does not cover metadata. Keep strike-through for compatibility, but with equivalent as has been deprecated in HTML5. --- issue/index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/issue/index.php b/issue/index.php index fb6a84e..388db5d 100644 --- a/issue/index.php +++ b/issue/index.php @@ -67,14 +67,15 @@ if ($id == 'feed') { ob_start(); print '
    '; while ($row = $query->fetch()) { - printf('
  • %s %s%s', + printf('%s %s%s', + $row->closed ? ' class="disabled"' : '', "/$Page/{$row->id}/{$row->link}", - sprintf($row->closed ? '%s' : '%s', + sprintf($row->closed ? '%s' : '%s', htmlspecialchars($row->subject)), showdate(array_slice(preg_split('/\D/', $row->updated), 0, 3)), implode(' ', [ $row->replycount ? sprintf('+%d', $row->replycount) : '', - isset($row->assign) ? ' '.$row->assign.'' : '', + isset($row->assign) ? ''.$row->assign.'' : '', ]) ); print "
  • \n"; -- 2.30.0