diff options
author | Loui Chang <louipc.ist@gmail.com> | 2008-12-22 07:07:04 +0100 |
---|---|---|
committer | Callan Barrett <wizzomafizzo@gmail.com> | 2008-12-22 14:02:01 +0100 |
commit | aebf02aa8c45988211cdf24d0dab4c2661439bd0 (patch) | |
tree | af825cb7157994ab339e947a6ee144ea5ba0b84c /web/template/pkg_search_results.php | |
parent | 22b50800e8fbda48830a3f2dfcc6a8ca5efb3a1c (diff) | |
download | aur-aebf02aa8c45988211cdf24d0dab4c2661439bd0.tar.gz aur-aebf02aa8c45988211cdf24d0dab4c2661439bd0.tar.xz |
Don't require login to see out of date packages from package search.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/template/pkg_search_results.php')
-rw-r--r-- | web/template/pkg_search_results.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index 2087abc4..12b32a13 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -47,9 +47,13 @@ $K = urlencode($K); </span></th> </tr> -<?php for ($i=0; $row = mysql_fetch_assoc($result); $i++) { (($i % 2) == 0) ? $c = "data1" : $c = "data2"; ?> +<?php +for ($i = 0; $row = mysql_fetch_assoc($result); $i++) { + (($i % 2) == 0) ? $c = "data1" : $c = "data2"; + if ($row["OutOfDate"]): $c = "outofdate"; endif; +?> <tr> - <?php if ($SID): if ($row["OutOfDate"]): $c = "outofdate"; endif; ?> + <?php if ($SID): ?> <td class='<?php print $c ?>'><input type='checkbox' name='IDs[<?php print $row["ID"] ?>]' value='1'></td> <?php endif; ?> <td class='<?php print $c ?>'><span class='f5'><span class='blue'><?php print $row["Location"] ?></span></span></td> @@ -114,10 +118,9 @@ $K = urlencode($K); <?php print __("Showing results %s - %s of %s", $first, $last, $total) ?> </span></span></td></tr> <td colspan='2' align='center'> - <span class='f5'> - <?php if ($SID): ?> - <span class="outofdate"><?php print __("Out of Date") ?></span> - <?php endif; ?> + <span class='f3'> + <?php echo __('Legend') ?> + <span class="outofdate"><?php print __('Out of Date') ?></span> </span></td> </tr> <tr> |