X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/2d7b510a9d33a552b024e1db00212658f21afce6..8216853ef9dabf609c67f2cfea3b71a5c9811c6e:/widget/reply.php
diff --git a/widget/reply.php b/widget/reply.php
index f924851..4f6a2c8 100644
--- a/widget/reply.php
+++ b/widget/reply.php
@@ -28,15 +28,22 @@ if ($row = $query->fetch()) {
$Page->teaser = $row->raw;
}
-print '
';
+print '';
$imagecount = 0;
while ($row = $query->fetch()) {
$rowuser = new User("profile/{$row->author}");
- printf('- ', $row->id);
- printf('%s %s',
- $rowuser->html, showdate(preg_split('/\D/', $row->created))
- );
+ printf('', $row->id);
+ printf('%s', $rowuser->html);
+ $rowdate = showdate(preg_split('/\D/', $row->created));
+ if ($User->admin('beheer') and $row->updated) {
+ $rowdate = "
$rowdate " . showdate(preg_split('/\D/', $row->updated));
+ }
+ printf(' %s', $rowdate);
+ if ($User->admin('beheer') and $User->admin('user') || $User->login === $row->author) {
+ printf(' %s',
+ "/{$Page->link}/{$row->id}", 'reactie aanpassen', "\u{270D}");
+ }
if ($html = $row->message) {
$html = preg_replace('/(?<= 2 ? 'loading="lazy" ' : '', $html, -1, $found);
@@ -64,11 +71,11 @@ while ($row = $query->fetch()) {
}
print "
\n";
}
- print "\n";
+ print "\n";
}
if ($User->login) {
- print '';
+ print '
';
print '";
print '';
- print "\n";
+ print "\n";
}
-print "\n\n";
+print "\n\n";