auth: append login to formatted user names
[minimedit.git] / issue / index.php
index fb6a84e8dfbe6aa04a1db12ca98e7115d3abd887..bb556f2019d6e259d70ca8a943cdc40757b75c50 100644 (file)
@@ -16,7 +16,7 @@ if ($id and ctype_digit($id)) {
        $author = $Issue->author ? new User('profile/'.$Issue->author, FALSE) : NULL;
        printf('<p><em>%s</em>%s <small class=date>%s</small></p>'."\n",
                'Geplaatst',
-               $author ? " door <strong>{$author->name}</strong>" : '',
+               $author ? " door <strong>{$author->html}</strong>" : '',
                showdate(preg_split('/\D/', $Issue->created))
        );
        if ($Issue->assign) {
@@ -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";