root/trunk/wifidog-auth/wifidog/templates/node_list.html @ 1253

Revision 1253, 2.5 KB (checked in by benoitg, 6 years ago)
  • Node.php: Improve getCurrentRealNode()
  • Implement #4: Allow the user to easily come back to the portal by typing in the root auth server adress from a hotspot.
  • Log the system information sent with the gateway since almost forever: sys_uptime, sys_memfree, sys_load, wifidog_uptime
  • NodeStatus?.php: Include the above information
  • node_list.html: Include wifidog_uptime if the hotspot is up.
  • Menu.php: Sort menus alphabetically according to the user's locale. TODO: Implement menu weights.
  • NodeLists?: Only list node types that have dependencies met in the menu. Refactor the NodeLists? for proper object-orientation.


  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<div id="node_list">
2        <h3>{"Status of all nodes of the"|_} {$networkName} {"network"|_}</h3>
3        <table>
4                <thead>
5                <tr>
6                        <th>
7                                <a href="?sort_by=last_heartbeat_user_agent">{"Status"|_}</a>
8                                {if $sort_by_param == "last_heartbeat_user_agent"}<img src="{$common_images_url}sort_by_asc.gif">{/if}
9                        </th>
10                        {* <th>
11                                <a href="?sort_by=node_id">{"Node id"|_}</a>
12                                {if $sort_by_param == "node_id"}<img src="{$common_images_url}sort_by_asc.gif">{/if}
13                        </th> *}
14                        <th>
15                                <a href="?sort_by=gw_id">{"Gateway id"|_}</a>
16                                {if $sort_by_param == "gw_id"}<img src="{$common_images_url}sort_by_asc.gif">{/if}
17                        </th>
18                        <th>
19                                <a href="?sort_by=name">{"Name"|_}</a>
20                                {if $sort_by_param == "name"}<img src="{$common_images_url}sort_by_asc.gif">{/if}
21                        </th>
22                        <th>{"Local content demo"|_}</th>
23                        <th>
24                                <a href="?sort_by=creation_date">{"Opened on"|_}</a>
25                                {if $sort_by_param == "creation_date"}<img src="{$common_images_url}sort_by_asc.gif">{/if}
26                        </th>
27                        <th>
28                                <a href="?sort_by=num_online_users">{"Online users"|_}</a>
29                                {if $sort_by_param == "num_online_users"}<img src="{$common_images_url}sort_by_asc.gif">{/if}
30                        </th>
31                </tr>
32                </thead>
33        {section name=node loop=$nodes}
34                <tr class="{cycle values="odd,even"}">
35                    <td class="status">
36                    {if $nodes[node].online == 't'}
37                    <img src='{$common_images_url}HotspotStatus/up.gif'>
38                        {if $nodes[node].last_heartbeat_wifidog_uptime != ''}
39                                {$nodes[node].last_heartbeat_wifidog_uptime.days} {"days"|_} {$nodes[node].last_heartbeat_wifidog_uptime.hours}{"h"|_} {$nodes[node].last_heartbeat_wifidog_uptime.minutes}{"min"|_}<br />
40                        {/if}
41                    {else}
42                    <img src='{$common_images_url}HotspotStatus/down.gif'>
43                    {$nodes[node].duration.days} {"days"|_} {$nodes[node].duration.hours}{"h"|_} {$nodes[node].duration.minutes}{"min"|_}<br />
44                    {/if}
45                    {$nodes[node].last_heartbeat_user_agent}
46                    </td>
47                    {* <td>{$nodes[node].node_id}</td> *}
48                    <td>{$nodes[node].gw_id}</td>
49                    <td>{$nodes[node].name}</td>
50                    <td>
51                    <a href='{$base_ssl_path}login/index.php?gw_id={$nodes[node].gw_id}&gw_address=127.0.0.1&gw_port=80'>{"Login page"|_}</a><br />
52                    <a href='{$base_url_path}portal/?node_id={$nodes[node].node_id}'>{"Portal page"|_}</a>
53                    </td>
54                    <td style="font-size: 8pt;">{$nodes[node].creation_date}<br>
55                    {$nodes[node].node_deployment_status}
56                    </td>
57                    <td>
58                    {if $nodes[node].num_online_users != 0}
59                    {$nodes[node].num_online_users}
60                    {/if}
61                    </td>
62                </tr>
63        {/section}
64        </table>
65</div>
Note: See TracBrowser for help on using the browser.