ref: baf63a21556905a6c27516a8d5641d31120d1fe3 fanboi2/fanboi2/templates/admin/dashboard.mako -rw-r--r-- 1.3 KiB View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<%namespace name='ident' file='../partials/_ident.mako' />
<%namespace name='datetime' file='../partials/_datetime.mako' />
<%inherit file='_layout.mako' />
<%def name='title()'>Dashboard - Admin Panel</%def>
<%def name='subheader_title()'>Dashboard</%def>
<%def name='subheader_body()'>Manage various aspect of the site.</%def>
<h2 class="sheet-title">Dashboard</h2>
<div class="sheet-body">
    <a class="button brand" href="${request.route_path('admin_logout')}">Logout</a>
</div>
<div class="sheet-body">
    <p>Logged in as <strong>${user.name}</strong> with ident <strong>${ident.render_ident(user.ident, user.ident_type)}</strong></p>
    <table class="admin-table">
        <thead class="admin-table-header">
            <tr class="admin-table-row">
                <th class="admin-table-item title">IP address</th>
                <th class="admin-table-item title sublead">Last seen at</th>
            </tr>
        </thead>
        <tbody class="admin-table-body">
            % for session in sessions:
            <tr class="admin-table-row">
                <td class="admin-table-item title">${session.ip_address}</td>
                <td class="admin-table-item sublead">${datetime.render_datetime(session.last_seen_at)}</td>
            </tr>
            % endfor
        </tbody>
    </table>
</div>