issue: metadata in sidebar container
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 25 Nov 2019 14:45:54 +0000 (15:45 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 25 Nov 2019 20:14:17 +0000 (21:14 +0100)
Separate list of global summary information, allowing a more hidden (aside)
styling keeping focus on discussion and clarifying repetitions (most items
are also represented as changes).

issue/index.php

index 82fa39e024287b442086c82dd824e8010a24d8b5..b34da6db60b4cb59b9942c550530bc1beff1265f 100644 (file)
@@ -13,26 +13,27 @@ if ($id and ctype_digit($id)) {
 
        $Article->title .= ': '.htmlspecialchars($Issue->subject);
        print "<h2>{$Article->title}</h2>\n";
-       $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->html}</strong>" : '',
-               showdate(preg_split('/\D/', $Issue->created))
-       );
+       print "<dl class=\"aside right sidebar\">\n";
+       print '<dt>Geplaatst</dt>';
+       printf('<dd>%s</dd>'."\n", showdate(preg_split('/\D/', $Issue->created)));
+       if ($Issue->author and $author = new User('profile/'.$Issue->author, FALSE)) {
+               printf('<dd>%s</dd>'."\n", $author->html);
+       }
        if ($Issue->assign) {
-               printf('<p><em>%s</em> aan <strong>%s</strong></p>'."\n",
-                       'Toegewezen', htmlspecialchars($Issue->assign)
-               );
+               print '<dt>Toegewezen aan</dt>';
+               printf('<dd>%s</dd>'."\n", htmlspecialchars($Issue->assign));
        }
        if ($Issue->closed) {
-               printf('<p><em>%s</em>%s <small class=date>%s</small></p>'."\n",
-                       'Opgelost', '',
-                       showdate(preg_split('/\D/', $Issue->closed))
-               );
+               print '<dt>Opgelost</dt>';
+               printf('<dd>%s</dd>'."\n", showdate(preg_split('/\D/', $Issue->closed)));
        }
+       print "</dl>\n\n";
+
+       print '<div>';
        print $Issue->body;
        $Args = "/$id";  # minimal reference
        print placeholder_include('reply');
+       print "</div>\n";
        return;
 }