~sirn/fanboi2

ref: 834edf0edc5dd633c0ecea16231b6ed2d728476d fanboi2/fanboi2/templates/partials/_layout.mako -rw-r--r-- 2.8 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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<%namespace name="formatters" module="fanboi2.helpers.formatters" />
<%namespace name="partials" module="fanboi2.helpers.partials" />
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">

    <link rel="icon" href="${request.tagged_static_path('fanboi2:static/icon.png')}" sizes="256x256">
    <link rel="shortcut icon" href="${request.tagged_static_path('fanboi2:static/icon.ico')}" type="image/x-icon">
    <link rel="apple-touch-icon" href="${request.tagged_static_path('fanboi2:static/touch-icon.png')}">

    <link rel="stylesheet" href="${request.tagged_static_path('fanboi2:static/vendor.css')}">
    <link rel="stylesheet" href="${request.tagged_static_path('fanboi2:static/app.css')}">
    <!--[if IE]><script type="text/javascript" src="${request.tagged_static_path('fanboi2:static/legacy.js')}"></script><![endif]-->

    <title>${self.title() + ' - ' if hasattr(self, 'title') else ''}Fanboi Channel</title>

    % if hasattr(self, 'header'):
        ${self.header()}
    % endif

    <% global_css = partials.global_css(request) %>
    % if global_css:
        <style>
            ${global_css}
        </style>
    % endif
</head>
<body id="${request.route_name}" class="${formatters.user_theme(request)}"${' ' + self.body_args() if hasattr(self, 'body_args') else ''}>

<header id="top" class="header" data-board-selector="true">
    <div class="container">
        <h1 class="header-brand"><a href="/">Fanboi Channel</a></h1>
        <div class="header-scroll-button"><a href="#bottom">Scroll to bottom</a></div>
    </div>
</header>

${self.body()}

<% global_appendix = partials.global_appendix(request) %>
% if global_appendix:
    <section class="appendix">
        <div class="container">
            ${global_appendix}
        </div>
    </section>
% endif

<footer id="bottom" class="footer">
    <div class="container">
        <div class="footer-scroll-button">
          <a href="#top">Scroll to top</a>
        </div>
        <div class="footer-lines" data-theme-selector="true">
            <p class="footer-lines-item">All contents are responsibility of its posters.</p>
        </div>
        <ul class="footer-links">
            <li class="footer-links-item"><a href="${request.route_path('api_root')}">API documentation</a></li>
            <li class="footer-links-item"><a href="https://github.com/forloopend/fanboi2">Source code</a></li>
        </ul>
    </div>
</footer>

<script type="text/javascript" src="${request.tagged_static_path('fanboi2:static/vendor.js')}"></script>
<script type="text/javascript" src="${request.tagged_static_path('fanboi2:static/app.js')}"></script>

<% global_footer = partials.global_footer(request) %>
% if global_footer:
    ${global_footer}
% endif

</body>
</html>