diff --git a/components/milliways.php b/components/milliways.php index 90b5edb32d5a0c01529811f95614f4a3fd559309..e5440c59bc5d260bef1204d7b8c12de2a18dba55 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 7e8cd75c1d54f0bfab324f15fb7f2a27e6ce87bd..f94f630126f2ce453ef79991c2d4ef69ba818e22 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