Source

djangobook-cn / templates / base.html

<!DOCTYPE html 
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}"
    xml:lang="{% firstof LANGUAGE_CODE 'ja' %}"
    lang="{% firstof LANGUAGE_CODE 'ja' %}">
<head>
<title>{% block title %}{% endblock %} - The Django Book (日本語)</title>
{% block css %}
<meta id="viewport" name="viewport" content="width=device-width; maximum-scale=0.6667; user-scalable=0;" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/yui/reset/reset-min.css" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/yui/grids/grids-min.css" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/djangobook.css" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/djangobook-ja.css" />
<link rel="stylesheet" type="text/css" href="{% url document_static path="pygments.css" %}" />
<!--[if !IE]>-->
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/iPhone.css" type="text/css" media="only screen and (max-device-width: 480px)" />
<!--<![endif]-->
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
{% endblock %}
{% block js %}{% endblock %}
{% block extra-head %}{% endblock %}
</head>
<body>
<div id="doc" class="djangobook-ja">
{% block header %}
<div id="hd">
<h1><a href="/">The Django Book (日本語)</a></h1>
<div id="global-nav">
<ul>
<li><a href="/about/" class="about">概要</a></li>
<li><span class="contact">コンタクト</span></li>
<li><span class="errata">正誤表</span></li>
{% comment %}
<li><a href="{% url contact %}" class="contact">コンタクト</a></li>
<li><a href="{% url errata %}" class="errata">正誤表</a></li>
{% endcomment %}
<li><a href="http://www.djangobook.com/" class="root">本家サイト</a></li>
<li><a href="http://bitbucket.org/Surgo/the-django-book-japanese/" class="code">ソースコード</a></li>
</ul>
</div>
{% block tnav %}{% endblock %}
</div>
{% endblock %}
<div id="bd">
<div id="yui-main">
<div class="yui-b">
{% block content-header %}
{% if error %}<div class="error">{{ error }}</div>{% endif %}
{% if info %}<div class="info">{{ info }}</div>{% endif %}
{% if messages %}
{% for message in messages %}
<div class="info">{{ message }}</div>
{% endfor %}
{% endif %}
{% endblock %}
{% block content %}{% endblock %}
</div>
</div>
</div>
{% block footer %}
<div id="ft">
{% block fnav %}{% endblock %}
Copyright 2006-2009 Adrian Holovaty and Jacob Kaplan-Moss.<br />
Copyright 2009 Kosei Kitahara.<br />
This work is licensed under the <a href="http://www.djangobook.com/license/">GNU Free Document License</a>.<br />
{% comment %}
This work is licensed under the <a href="{% url licenseja %}">GNU Free Document License</a>.<br />
{% endcomment %}
Powered by <a href="http://www.djangoproject.com/">Django</a> on <a href="http://code.google.com/appengine/">Google App Engine</a> via <a href="http://code.google.com/p/app-engine-patch/">app-engine-patch</a>.
</div>
{% endblock %}
</div>
<script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
  try {
    var pageTracker = _gat._getTracker("UA-5208721-7");
    pageTracker._trackPageview();
  } catch(err) {}
</script>
</body>
</html>