[aur-dev] [PATCH] Move user statistics table to the right

Lukas Fleischer archlinux at cryptocrack.de
Tue Jul 1 15:24:31 EDT 2014


Display user statistics under the general package statistics table.

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/html/home.php | 19 +++++--------------
 1 file changed, 5 insertions(+), 14 deletions(-)

diff --git a/web/html/home.php b/web/html/home.php
index 62c246a..2757c06 100644
--- a/web/html/home.php
+++ b/web/html/home.php
@@ -71,20 +71,6 @@ html_header( __("Home") );
 				<?= __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.'); ?>
 			</div>
 		</div>
-		<?php if (!empty($_COOKIE["AURSID"])): ?>
-			<div id="pkg-updates" class="widget box">
-				<table>
-					<tr>
-						<td class="pkg-name">
-							<?php
-							$userid = uid_from_sid($_COOKIE["AURSID"]);
-							user_table($userid);
-							?>
-						</td>
-					</tr>
-				</table>
-			</div>
-		<?php endif; ?>
 	</div>
 </div>
 <div id="content-right">
@@ -103,6 +89,11 @@ html_header( __("Home") );
 	<div id="pkg-stats" class="widget box">
 		<?php general_stats_table(); ?>
 	</div>
+	<?php if (!empty($_COOKIE["AURSID"])): ?>
+	<div id="pkg-stats" class="widget box">
+		<?php user_table(uid_from_sid($_COOKIE["AURSID"])); ?>
+	</div>
+	<?php endif; ?>
 
 </div>
 <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
-- 
2.0.1



More information about the aur-dev mailing list