issue: display ticket creation date
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 20 Oct 2019 04:16:49 +0000 (06:16 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 9 Nov 2019 06:08:13 +0000 (07:08 +0100)
issue/index.php

index 2c50624f9a7fc1cbc7fae406ce4fb65f76eea1a6..6b1c3dc53b7fe5aad589b91afb27820be36864b8 100644 (file)
@@ -14,9 +14,15 @@ if ($id) {
        $Article->title .= ': '.htmlspecialchars($row->subject);
        print "<h2>{$Article->title}</h2>\n";
        print $row->body;
+       printf('<p><em>%s</em>%s <small class=date>%s</small></p>'."\n",
+               'Geplaatst',
+               $row->author ? " door <strong>{$row->author}</strong>" : '',
+               showdate(preg_split('/\D/', $row->created))
+       );
        if ($row->closed) {
-               printf('<p><strong>%s</strong> <small class=date>%s</small></p>'."\n",
-                       'Opgelost', showdate(preg_split('/\D/', $row->closed))
+               printf('<p><em>%s</em>%s <small class=date>%s</small></p>'."\n",
+                       'Opgelost', '',
+                       showdate(preg_split('/\D/', $row->closed))
                );
        }
        $Args = "/$id";  # minimal reference