~sirn/fanboi2

ref: 834edf0edc5dd633c0ecea16231b6ed2d728476d fanboi2/fanboi2/templates/topics/_subheader.mako -rw-r--r-- 1.1 KiB
834edf0eKridsada Thanabulpong Massive cleanup in preparation for 0.30 (#25) 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<%namespace name="formatters" module="fanboi2.helpers.formatters" />
<header class="subheader">
    <div class="container">
        <h2 class="subheader-title"><a href="${request.route_path('topic', board=board.slug, topic=topic.id)}">${topic.title}</a></h2>
        <div class="subheader-body lines">
            <p>Last posted <strong>${formatters.format_datetime(request, topic.meta.posted_at)}</strong></p>
            <p>Total of <strong>${topic.meta.post_count} posts</strong></p>
        </div>
        <div class="subheader-footer">
            <ul class="actions">
                <li class="actions-item"><a class="button static" href="${request.route_path('board', board=board.slug)}">Back</a></li>
                <li class="actions-item"><a class="button brand static" href="${request.route_path('topic', board=board.slug, topic=topic.id)}">Show topic</a></li>
                % if topic.status == 'open' and board.status in ('open', 'restricted'):
                    <li class="actions-item"><a class="button green static" href="#reply">Reply</a></li>
                % endif
            </ul>
        </div>
    </div>
</header>