Skip to content
Snippets Groups Projects
Commit a0f4e8b8 authored by Graham Cole's avatar Graham Cole
Browse files

move current milliways users to a sidebar to leave more space for actual relevant information

parent bc64be72
No related branches found
No related tags found
No related merge requests found
......@@ -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);
?>
{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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment