ref: baf63a21556905a6c27516a8d5641d31120d1fe3 fanboi2/fanboi2/templates/admin/boards/all.mako -rw-r--r-- 1.5 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
31
32
33
34
35
36
37
<%namespace name='datetime' file='../../partials/_datetime.mako' />
<%inherit file='../_layout.mako' />
<%def name='title()'>Boards - Admin Panel</%def>
<%def name='subheader_title()'>Boards</%def>
<%def name='subheader_body()'>Manage boards.</%def>
<h2 class="sheet-title">All Boards</h2>
<%include file='_nav.mako' />
<div class="sheet-body">
    <table class="admin-table">
        <thead class="admin-table-header">
            <tr class="admin-table-row">
                <th class="admin-table-item title">Title</th>
                <th class="admin-table-item title sublead">Status</th>
                <th class="admin-table-item title tail">Last updated</th>
            </tr>
        </thead>
        <tbody class="admin-table-body">
            % for board in boards:
            <tr class="admin-table-row">
                <th class="admin-table-item title"><a href="${request.route_path('admin_board_topics', board=board.slug)}">${board.title}</a></th>
                <td class="admin-table-item">
                    % if board.status == 'open':
                    Open
                    % elif board.status == 'locked':
                    Locked
                    % elif board.status == 'restricted':
                    Restricted
                    % elif board.status == 'archived':
                    Archived
                    % endif
                </td>
                <td class="admin-table-item">${datetime.render_datetime(board.updated_at or board.created_at)}</td>
            </tr>
            % endfor
        </tbody>
    </table>
</div>