summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorMark Weiman <mark.weiman@markzz.com>2015-12-14 16:18:16 -0500
committerLukas Fleischer <lfleischer@archlinux.org>2015-12-15 17:46:18 +0100
commite9fe1a9eb100b11fda80f05b5b3239ee97e3a905 (patch)
treee484f0f2dea3871d4e5b6b7c5b812f07b93259d0 /web/html
parent76a589257ef37402ad53b4b876e9383c19f8e18a (diff)
downloadaurweb-e9fe1a9eb100b11fda80f05b5b3239ee97e3a905.tar.xz
Add link to flag OOD comment
Implements: FS#46546 Signed-off-by: Mark Weiman <mark.weiman@markzz.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/css/aurweb.css4
-rw-r--r--web/html/index.php3
-rw-r--r--web/html/pkgflagcomment.php19
3 files changed, 26 insertions, 0 deletions
diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css
index 82b83d9..92ff898 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 8b5cb62..0a9fd05 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 0000000..98680ef
--- /dev/null
+++ b/web/html/pkgflagcomment.php
@@ -0,0 +1,19 @@
+<?php
+
+set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
+
+include_once("aur.inc.php");
+include_once("pkgbasefuncs.inc.php");
+
+set_lang();
+check_sid();
+
+if (!isset($base_id)) {
+ header('Location: /');
+ exit();
+}
+
+html_header(__("Flag Comment"));
+$message = pkgbase_get_flag_comment($base_id);
+include('flag_comment.php');
+html_footer(AURWEB_VERSION);