+= parse_comment($message['FlaggerComment']) ?>
diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css index 82b83d9e..92ff8989 100644 --- a/web/html/css/aurweb.css +++ b/web/html/css/aurweb.css @@ -130,6 +130,10 @@ top: 4px; } +.flagged a { + color: inherit; +} + legend { padding: 1em 0; } diff --git a/web/html/index.php b/web/html/index.php index 8b5cb621..0a9fd05d 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -73,6 +73,9 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) { case "unflag": $_POST['do_UnFlag'] = __('UnFlag'); break; + case "flag-comment": + include('pkgflagcomment.php'); + return; case "delete": include('pkgdel.php'); return; diff --git a/web/html/pkgflagcomment.php b/web/html/pkgflagcomment.php new file mode 100644 index 00000000..98680ef6 --- /dev/null +++ b/web/html/pkgflagcomment.php @@ -0,0 +1,19 @@ +query($q); + + $row = array(); + + if (!$result) { + $row['error'] = __("Error retrieving package details."); + } + else { + $row = $result->fetch(PDO::FETCH_ASSOC); + if (empty($row)) { + $row['error'] = __("Package details could not be found."); + } + } + + return $row; +} + /** * Delete package bases * diff --git a/web/template/flag_comment.php b/web/template/flag_comment.php new file mode 100644 index 00000000..36af43ea --- /dev/null +++ b/web/template/flag_comment.php @@ -0,0 +1,25 @@ +
+ + = __('%s%s%s flagged %s%s%s out-of-date on %s%s%s for the following reason:', + '', html_format_username($message['Username']), '', + '', htmlspecialchars($pkgbase_name), '', + '', gmdate('Y-m-d', $message['OutOfDateTS']), ''); ?> + + = __('%s%s%s is not flagged out-of-date.', + '', htmlspecialchars($pkgbase_name), ''); ?> + +
++
+= parse_comment($message['FlaggerComment']) ?>
+
+ +