Use a table for search results
This commit is contained in:
parent
57559f5ee0
commit
698284bd0b
|
@ -95,13 +95,20 @@ function main() {
|
|||
printHead($self, "speedie-aur", "Found $validPkgs packages matching '$query' in speedie-aur", "Found $validPkgs packages matching search query '$query' in speedie-aur");
|
||||
|
||||
print "\t\t\t<p class=\"matches\">$validPkgs packages found matching '$query'..</p>\n";
|
||||
print "\t\t\t\t<ul class=\"pkglist\">\n";
|
||||
print "\t\t\t<table>\n";
|
||||
print "\t\t\t\t<tr>\n";
|
||||
print "\t\t\t\t\t<td><strong>Package</strong></td>\n";
|
||||
print "\t\t\t\t\t<td><strong>Description</strong></td>\n";
|
||||
print "\t\t\t\t</tr>\n";
|
||||
|
||||
for ($i = 0; $i < $validPkgs; $i++) {
|
||||
print "\t\t\t\t\t<li class=\"pkg\"><a href=\"$self?action=view&q=$matches[$i]\">$matches[$i] - $matchingDescs[$i]</li>\n";
|
||||
print "\t\t\t\t\t<tr>\n";
|
||||
print "\t\t\t\t\t\t<td><a href=\"$self?action=view&q=$matches[$i]\">$matches[$i]</a></td>\n";
|
||||
print "\t\t\t\t\t\t<td>$matchingDescs[$i]</td>\n";
|
||||
print "\t\t\t\t</tr>\n";
|
||||
}
|
||||
|
||||
print "\t\t\t\t</ul>\n";
|
||||
print "\t\t\t</table>\n";
|
||||
} else if ($request == "all") {
|
||||
printHead($self, "speedie-aur", "All packages in speedie-aur", "There are $packageCount packages in speedie-aur");
|
||||
|
||||
|
|
Loading…
Reference in a new issue