Files
i2p.www/i2p2www/pages/global/layout.html

82 lines
3.0 KiB
HTML
Raw Normal View History

{%- from "global/macros" import change_lang with context -%}
<!DOCTYPE html>
<html lang="en">
2008-01-31 20:38:37 +00:00
<head>
<meta charset="UTF-8">
<title>{% block title_outer %}{% block title %}{% endblock %} - I2P{% endblock %}</title>
<link rel="canonical" href="{{ canonical() }}" />
{% if g.exttheme %}<link rel="stylesheet" type="text/css" href="{{ g.exttheme }}" title="External theme" />{% else -%}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/' + g.theme + '.css') }}" title="{{ g.theme }}" />
{%- endif %}
<link rel="shortcut icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}" />
2010-07-31 15:24:13 +00:00
<meta name="robots" content="NOODP" />
{%- block headextra %}{% endblock %}
2008-01-31 20:38:37 +00:00
</head>
<body>
{%- if g.theme == "duck" %}
<div class="hide"><a href="#content" title="Skip navigation" accesskey="2">{{ _('Skip navigation') }}</a></div>
<div id="branding">
<h1 id="logo"><a href="{{ site_url() }}"><img src="{{ url_for('static', filename='images/logo_medium.png') }}" alt="I2P" /></a></h1>
<div class="title">{{ self.title() }}</div>
</div>
<div class="navigation">
{% include "global/nav.html" %}
</div>
<div id="content">
{% block content_outer %}
<div class="inner">
{%- if self.lastupdated() or self.accuratefor() -%}
<div class="lastupdated">
This page {% if self.lastupdated() %}was last updated in {% block lastupdated %}{% endblock %}{% endif -%}
{% if self.lastupdated() and self.accuratefor() %} and {% endif -%}
{% if self.accuratefor() %}is accurate for router version {% block accuratefor %}{% endblock %}{% endif %}.
</div>
{% endif %}
{% block content %}{% endblock %}
</div>
{% endblock %}
</div>
<div id="footer">
{% include "global/footer.html" %}
2008-01-31 20:38:37 +00:00
</div>
{%- else %}
<div class="topbar">
<div class="topbar-inner">
<div class="container-fluid">
<a class="brand" href="{{ site_url() }}"><img src="{{ url_for('static', filename='images/i2plogo.png') }}" alt="I2P Logo" title="Invisible Internet Project (I2P)" /></a>
<div class="pull-right">
<h6>{{ self.title() }}</h6>
{% include "global/lang.html" %}
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="sidebar">
<div class="alert-message block-message warning news">
<h2>{% trans %}News &amp; Updates{% endtrans %}</h2>
{% include "blog/latest.html" %}
</div>
<div class="well">
{% include "global/nav.html" %}
</div>
</div>
<div class="content well">
{%- if self.content() %}
{{ self.content() }}
{%- else %}
{{ self.content_outer() }}
{%- endif %}
<footer>
<p>{{ _("See <a href=\"licenses.html\">license") }}</a>.</p>
</footer>
</div>
</div>
{%- endif %}
2008-01-31 20:38:37 +00:00
</body>
</html>