remarkbox-westworld/remarkbox_westworld/templates/base.j2

83 lines
2.1 KiB
Django/Jinja

<!DOCTYPE html>
<html lang="en">
<head>
<title>{% block title %}{{ request.domain }}{% endblock %}</title>
<meta charset="utf-8" />
<!-- this makes mobile pretty... -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#030408">
<script type="text/javascript" src="/static/js/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="/static/js/custom.js"></script>
<script type="text/javascript" src="/static/js/iframe-resizer/iframeResizer.contentWindow.min.js"></script>
<link rel="stylesheet" href="/static/css/common.css">
{% block stylesheets -%}
<link rel="stylesheet" href="/static/css/embed.css">
{%- endblock %}
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:700">
<link rel="stylesheet" href="/static/theme/css/westworld.css">
<link rel="stylesheet" href="/static/css/pygments.css">
{% include 'snippets/google-analytics.j2' %}
</head>
<body>
<noscript>
<style>
.js-only {display: none;}
</style>
</noscript>
<div id="alerts">
{%- for message, level in request.session.pop_flash() %}
<div class="alert alert-{{level}}" onclick="this.style.display='none'" name="alert">
<label class="close js-only" alt="dismiss" title="dismiss">x</label>
{{message}}
</div>
{%- endfor %}
</div>
<div class="searchbox">
{% include 'snippets/search.j2' %}
</div>
<h1 class="brand"><a href="/">
WESTWORLD <span style="font-size: .5em; letter-spacing: 5px;" class="mobile-hide">Forum</span></a>
</h1>
<div id="remarkbox-menu">
{%- block menu %}
<a href="/">home</a> |
<a href="/new">new thread</a> |
{%- if request.user %}
{{request.user.name}} <a href="/logout">[logout]</a>
{% else %}
<a href="/login-or-register">login-or-register</a>
{%- endif %}
{%- endblock %}
</div>
<br>
<br>
<div class="main">
{% block content %}
{% endblock %}
</div>
<div id="remarkbox-footer">
<br />
<br />
<center>
{% include 'powered-by.j2' %} Powered by <a href="https://www.remarkbox.com">Remarkbox</a> dedicated
<center>
</div>
</body>
</html>