From 6b1d603f5f5265dcfaf005b9c45cc6aaac2f0bc6 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 25 Nov 2019 15:45:54 +0100 Subject: [PATCH] issue: metadata in sidebar container 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 | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/issue/index.php b/issue/index.php index 82fa39e..b34da6d 100644 --- a/issue/index.php +++ b/issue/index.php @@ -13,26 +13,27 @@ if ($id and ctype_digit($id)) { $Article->title .= ': '.htmlspecialchars($Issue->subject); print "

{$Article->title}

\n"; - $author = $Issue->author ? new User('profile/'.$Issue->author, FALSE) : NULL; - printf('

%s%s %s

'."\n", - 'Geplaatst', - $author ? " door {$author->html}" : '', - showdate(preg_split('/\D/', $Issue->created)) - ); + print "
\n"; + print '
Geplaatst
'; + printf('
%s
'."\n", showdate(preg_split('/\D/', $Issue->created))); + if ($Issue->author and $author = new User('profile/'.$Issue->author, FALSE)) { + printf('
%s
'."\n", $author->html); + } if ($Issue->assign) { - printf('

%s aan %s

'."\n", - 'Toegewezen', htmlspecialchars($Issue->assign) - ); + print '
Toegewezen aan
'; + printf('
%s
'."\n", htmlspecialchars($Issue->assign)); } if ($Issue->closed) { - printf('

%s%s %s

'."\n", - 'Opgelost', '', - showdate(preg_split('/\D/', $Issue->closed)) - ); + print '
Opgelost
'; + printf('
%s
'."\n", showdate(preg_split('/\D/', $Issue->closed))); } + print "
\n\n"; + + print '
'; print $Issue->body; $Args = "/$id"; # minimal reference print placeholder_include('reply'); + print "
\n"; return; } -- 2.30.0