- if (!$row) throw new Exception('Issuenummer niet gevonden');
-
- $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><em>%s</em>%s <small class=date>%s</small></p>'."\n",
- 'Opgelost', '',
- showdate(preg_split('/\D/', $row->closed))
- );
+ if (!$Issue) throw new Exception('Issuenummer niet gevonden');
+
+ $replies = $Page->widget('reply'); # handle updates
+
+ $Page->title .= ': '.htmlspecialchars($Issue->subject);
+ $Page->teaser = $Issue->body;
+ if (!$User) return;
+ $Page->body = $replies; # find image
+
+ print "<h2>{$Page->title}</h2>\n";
+ print '<aside class="metadata"><dl>'."\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) {
+ print '<dt>Toegewezen aan</dt>';
+ printf('<dd>%s</dd>'."\n", htmlspecialchars($Issue->assign));