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) { ...@@ -14,6 +14,7 @@ foreach ($wholist as $person) {
$smarty->assign("people",$people); $smarty->assign("people",$people);
$output = $smarty->fetch($base."templates/milliways.tpl"); $output = $smarty->fetch($base."templates/milliways.tpl");
$smarty->assign("title", "Milliways"); $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); $smarty->assign("refresh", 120);
?> ?>
{include file="../static/fragments/Milliways.txt"} <div class="cbb">
<h3>Current Milliways Users</h3>
<h2>Current Milliways Users</h2>
{if $people|@count < 1} {if $people|@count < 1}
<p>No-one logged on to Milliways</p> <p>No-one logged on to Milliways</p>
{else} {else}
<table class="border"> <ul>
<tr>
<th>Username</th>
<th>Idle time</th>
<th>What</th>
</tr>
{foreach name=people from=$people key=personnum item=person} {foreach name=people from=$people key=personnum item=person}
<tr> <li>{$person.username}<small>{$person.idle} idle</small></li>
<td>{$person.username}</td>
<td>{$person.idle}</td>
<td>{$person.what}</td>
</tr>
{/foreach} {/foreach}
</table> </ul>
{/if} {/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