[aur-dev] [PATCH 1/2] voters.php: Use "<ul></ul>" for the list of voters
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> --- web/html/voters.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/html/voters.php b/web/html/voters.php index c7c59a2..0ec77ec 100644 --- a/web/html/voters.php +++ b/web/html/voters.php @@ -17,11 +17,11 @@ if ($atype == 'Trusted User' || $atype== 'Developer'): <div class="box"> <h2>Votes for <a href="<?php echo get_pkg_uri(pkgname_from_id($pkgid)); ?>"><?php echo pkgname_from_id($pkgid) ?></a></h2> <div class="boxbody"> - -<?php - while (list($indx, $row) = each($votes)): ?> - <a href="<?php echo get_uri('/account/'); ?>?Action=AccountInfo&ID=<?php echo $row['UsersID'] ?>"><?php echo htmlspecialchars($row['Username']) ?></a><br /> - <?php endwhile; ?> + <ul> + <?php while (list($indx, $row) = each($votes)): ?> + <li><a href="<?php echo get_uri('/account/'); ?>?Action=AccountInfo&ID=<?php echo $row['UsersID'] ?>"><?php echo htmlspecialchars($row['Username']) ?></a></li> + <?php endwhile; ?> + </ul> </div> </div> -- 1.7.11.2
archweb uses "<div></div>" and "<p></p>" here. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> --- web/template/pkg_details.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 207ecfd..774d670 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -56,17 +56,19 @@ $sources = package_sources($row["ID"]); <?php endif; ?> </ul> <form action="<?php echo htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post"> - <fieldset> + <div> <input type="hidden" name="IDs[<?php echo $row['ID'] ?>]" value="1" /> <input type="hidden" name="ID" value="<?php echo $row['ID'] ?>" /> <input type="hidden" name="token" value="<?php echo htmlspecialchars($_COOKIE['AURSID']) ?>" /> + </div> + <p> <?php if ($row["MaintainerUID"] === NULL): ?> <input type="submit" class="button" name="do_Adopt" value="<?php echo __("Adopt Packages") ?>" /> <?php elseif ($uid == $row["MaintainerUID"] || $atype == "Trusted User" || $atype == "Developer"): ?> <input type="submit" class="button" name="do_Disown" value="<?php echo __("Disown Packages") ?>" /> <?php endif; ?> - </fieldset> + </p> </form> </div> </div> -- 1.7.11.2
participants (1)
-
Lukas Fleischer