From a0f4e8b8a8b6b2fce1097916834293c46f284906 Mon Sep 17 00:00:00 2001
From: Graham Cole <chckens@sucs.org>
Date: Fri, 14 Dec 2007 21:10:49 +0000
Subject: [PATCH] move current milliways users to a sidebar to leave more space
 for actual relevant information

---
 components/milliways.php |  3 ++-
 templates/milliways.tpl  | 23 ++++++-----------------
 2 files changed, 8 insertions(+), 18 deletions(-)

diff --git a/components/milliways.php b/components/milliways.php
index 90b5edb..e5440c5 100644
--- a/components/milliways.php
+++ b/components/milliways.php
@@ -14,6 +14,7 @@ foreach ($wholist as $person) {
 $smarty->assign("people",$people);
 $output = $smarty->fetch($base."templates/milliways.tpl");
 $smarty->assign("title", "Milliways");
-$smarty->assign("body", $output);
+$smarty->assign("body", file_get_contents($base."static/fragments/Milliways.txt"));
+$smarty->assign("secondary", $output);
 $smarty->assign("refresh", 120);
 ?>
diff --git a/templates/milliways.tpl b/templates/milliways.tpl
index 7e8cd75..f94f630 100644
--- a/templates/milliways.tpl
+++ b/templates/milliways.tpl
@@ -1,24 +1,13 @@
-{include file="../static/fragments/Milliways.txt"}
-
-<h2>Current Milliways Users</h2>
+<div class="cbb">
+<h3>Current Milliways Users</h3>
 {if $people|@count < 1}
 <p>No-one logged on to Milliways</p>
 {else}
-<table class="border">
-    <tr>
-	<th>Username</th>
-	<th>Idle time</th>
-	<th>What</th>
-    </tr>
+<ul>
     {foreach name=people from=$people key=personnum item=person}
-    <tr>
-	<td>{$person.username}</td>
-	<td>{$person.idle}</td>
-	<td>{$person.what}</td>
-    </tr>
+    <li>{$person.username}<small>{$person.idle} idle</small></li>
     {/foreach}
-</table>
+</ul>
 {/if}
+</div>
 
-<a href="#" onclick="window.open('/mw/','Milliways','height=380,width=610,menubar=no,resizable=no,location=no,directories=no,scr
-ollbars=no,status=no,toolbar=no')">Use Milliways now</a>
\ No newline at end of file
-- 
GitLab