X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=html%2Fqa.php;h=cdc8dd514ad768c9b09a3ebd8e8a71fdc2450b59;hb=8e5b91b1d241c9af5af1a6c154a4425f54f1d288;hp=bd8d66163de9bc3bfe91c8736fcfbac4b247718a;hpb=e1e042c3ce7e4adc92082a1ccf3330345518163b;p=projects%2Fpld-ftp-admin.git diff --git a/html/qa.php b/html/qa.php index bd8d661..cdc8dd5 100644 --- a/html/qa.php +++ b/html/qa.php @@ -39,14 +39,16 @@ $reports = array( "lint-ready" => "rpmlint: ready", ); -echo "Select report:"; -echo "\n"; + foreach ($reports as $q => $title) { + printf("\n", $q, $q == $report ? 'selected' :'', $title); + } + echo "\n"; } -echo "\n"; -if (isset($reports[$report])) { +function format_report($report) { echo "raw
\n"; $file = "$report.txt"; $giturl = 'http://git.pld-linux.org/gitweb.cgi?p=packages/%1$s.git;f=%1$s.spec;h=HEAD;a=shortlog'; @@ -62,6 +64,11 @@ if (isset($reports[$report])) { echo ''; } +reports_selection($reports); +if (isset($reports[$report])) { + format_report($report); +} + ?>