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

101 lines
5.0 KiB
HTML
Raw Normal View History

{%- from "global/macros" import change_lang with context -%}
<!DOCTYPE html>
2014-03-05 00:21:13 +00:00
<html lang="{{ g.lang }}"{% if is_rtl() %} dir="rtl"{% endif %}>
2008-01-31 20:38:37 +00:00
<head>
<meta charset="UTF-8">
<title>{% block title_outer %}{% block title %}{% endblock %} - I2P{% endblock %}</title>
{%- if self.metadesc() %}
<meta name="description" content="{% block metadesc %}{% endblock %}">
{%- endif %}
<link rel="canonical" href="{{ canonical() }}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes" />
{% 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 + '/default.css') }}" media="screen, handheld, print, projection" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/' + g.theme + '/mobile.css') }}" media="screen and (min-device-width:320px) and (max-width:767px)" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/' + g.theme + '/desktop.css') }}" title="{{ g.theme }}" media="screen and (min-device-width:768px) and (min-width:768px), print, projection" />
<!--[if IEMobile]>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/' + g.theme + '/mobile.css') }}" media="screen" />
<![endif]-->
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/' + g.theme + '/desktop.css') }}" title="{{ g.theme }}" media="all" />
<![endif]-->
2014-03-05 00:21:13 +00:00
{% if is_rtl() -%}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/' + g.theme + '/default.rtl.css') }}" media="screen, handheld, print, projection" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/' + g.theme + '/desktop.rtl.css') }}" title="{{ g.theme }}" media="screen and (min-device-width:768px) and (min-width:768px), print, projection" />
{%- endif %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/' + g.theme + '/syntax.css') }}" media="screen, handheld, print, projection" />
{%- 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>
<div class="hide"><a href="#content" title="Skip navigation" accesskey="2">{{ _('Skip navigation') }}</a></div>
<header>
<div id="topbar">
<a id="logo" href="{{ site_url() }}"><img src="{{ url_for('static', filename=logo_url()) }}" alt="{{ _('I2P Logo') }}" title="{{ _('The Invisible Internet Project') }} (I2P)" /></a>
<div class="title">
<h1>{{ self.title() }}</h1>
<div class="lang">
{% include "global/lang.html" %}
</div>
</div>
</div>
<nav class="navigation">
{% include "global/nav.html" %}
</nav>
</header>
<div class="container-fluid{% if not self.content() %} well{% endif %}">
<div id="content">
{% block content_outer %}
<div class="title">
<h1>{{ self.title() }}</h1>
</div>
<main role="main" class="inner">
{% if self.content_nav() or self.lastupdated() or self.accuratefor() -%}
<aside class="sidebar">
{% if self.content_nav() -%}
<nav{% if self.lastupdated() or self.accuratefor() %} class="top"{% endif %}>
{% block content_nav %}{% endblock %}
</nav>
{%- endif %}
{% if self.lastupdated() or self.accuratefor() -%}
<div class="lastupdated">
<!--
{% block lastupdated %}{% endblock %}
{% block accuratefor %}{% endblock %}
-->
{% if self.lastupdated() and self.accuratefor() -%}
{% trans lastupdated=self.lastupdated(), accuratefor=self.accuratefor() -%}
This page was last updated in {{ lastupdated}} and is accurate for router version {{ accuratefor }}.
{%- endtrans %}
{%- else %}{% if self.lastupdated() -%}
{% trans lastupdated=self.lastupdated() -%}
This page was last updated in {{ lastupdated}}.
{%- endtrans %}
{%- else %}{% if self.accuratefor() -%}
{% trans accuratefor=self.accuratefor() -%}
This page is accurate for router version {{ accuratefor }}.
{%- endtrans %}
{%- endif %}{% endif %}{% endif %}
</div>
{%- endif %}
</aside>
{%- endif %}
<article class="content-inner{% if self.content_nav() or self.lastupdated() or self.accuratefor() %} two-col{% endif %}">
{% block content %}{% endblock %}
</article>
</main>
{% endblock %}
</div>
<footer id="global-footer">
{% include "global/footer.html" %}
</footer>
</div>
2008-01-31 20:38:37 +00:00
</body>
</html>