ref: baf63a21556905a6c27516a8d5641d31120d1fe3 fanboi2/fanboi2/templates/admin/banwords/all.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
31
32
33
34
<%namespace name='datetime' file='../../partials/_datetime.mako' />
<%inherit file='../_layout.mako' />
<%def name='title()'>Banwords - Admin Panel</%def>
<%def name='subheader_title()'>Banwords</%def>
<%def name='subheader_body()'>Manage banwords.</%def>
<h2 class="sheet-title">All Banwords</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">Expression</th>
                <th class="admin-table-item title tail">Description</th>
            </tr>
        </thead>
        <tbody class="admin-table-body">
            % for banword in banwords:
                <tr class="admin-table-row">
                    <th class="admin-table-item title">
                        <code><a href="${request.route_path('admin_banword', banword=banword.id)}">${banword.expr}</a></code>
                        <td class="admin-table-item">
                            % if banword.description:
                                ${banword.description}
                            % else:
                                <em>No description</em>
                            % endif
                        </td>
                    </th>
                </tr>
            % endfor
        </tbody>
    </table>
</div>