issue: restore reply form divider
[minimedit.git] / widget / reply.php
index f9248512105bda05860bf691d212bbf7d1e0e3b3..f8984aae185e29b7b413bc8dc8f954de1f1338e6 100644 (file)
@@ -34,9 +34,16 @@ $imagecount = 0;
 while ($row = $query->fetch()) {
        $rowuser = new User("profile/{$row->author}");
        printf('<li id="%d">', $row->id);
-       printf('<strong>%s</strong> <small class=date>%s</small>',
-               $rowuser->html, showdate(preg_split('/\D/', $row->created))
-       );
+       printf('<strong>%s</strong>', $rowuser->html);
+       $rowdate = showdate(preg_split('/\D/', $row->created));
+       if ($User->admin('beheer') and $row->updated) {
+               $rowdate = "<s>$rowdate</s> " . showdate(preg_split('/\D/', $row->updated));
+       }
+       printf(' <small class=date>%s</small>', $rowdate);
+       if ($User->admin('beheer') and $User->admin('user') || $User->login === $row->author) {
+               printf(' <a href="%s" title="%s" class=icon>%s</a>',
+                       "/{$Page->link}/{$row->id}", 'reactie aanpassen', "\u{270D}");
+       }
        if ($html = $row->message) {
                $html = preg_replace('/(?<=<img )/',
                        $imagecount > 2 ? 'loading="lazy" ' : '', $html, -1, $found);
@@ -68,7 +75,7 @@ while ($row = $query->fetch()) {
 }
 
 if ($User->login) {
-       print '<li>';
+       print '<li><hr/>';
        print '<form method="post" action="" enctype="multipart/form-data">';
        if (isset($Issue) and $User->admin("edit {$Page->link}")) {
                print "<aside>\n";