{% load i18n %}{% load markup %}{% load wikimenu %}{% load recentpages %}<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
                      "http://www.w3.org/TR/html4/strict.dtd">
{% comment %}
 For layout see:

    http://www.456bereastreet.com/lab/developing_with_web_standards/csslayout/2-col/
    http://www.456bereastreet.com/lab/developing_with_web_standards/csslayout/2-col/finished.html

{% endcomment %}<html lang="en">
  <head>
    <title>{% block title %}{% if title %}{{ title }}{% else %}Wiki{% endif %}{% endblock title %}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
{% comment %}
    <link rel="stylesheet" href="{{ static }}/css/blueprint/screen.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="{{ static }}/css/blueprint/print.css" type="text/css" media="print">    
    <!--[if IE]><link rel="stylesheet" href="{{ static }}/css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
    <!-- Import fancy-type plugin for the sample page. -->
<!--
    <link rel="stylesheet" href="{{ static }}/css/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection">
-->
    <link rel="stylesheet" href="{{ static }}/css/wiki-screen.css" type="text/css" media="screen, projection">
{% endcomment %}
    <link rel="stylesheet" href="{{ static }}/css/reset.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="{{ static }}/css/simple.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="{{ static }}/css/layout.css" type="text/css" media="screen, projection">
    <script type="text/javascript" src="{{ js }}/menu-tree.js"></script>
<!-- calendar -->
<link rel="stylesheet" type="text/css" href="{{ js }}/jscalendar/calendar-win2k-cold-2.css" />
<script type="text/javascript" src="{{ js }}/jscalendar/calendar.js"></script>
 <!-- this is translation file - choose your language here -->
<script type="text/javascript" src="{{ js }}/jscalendar/lang/calendar-{% if request.LANGUAGE_CODE %}{{ request.LANGUAGE_CODE }}{% else %}en{% endif %}.js"></script>
<script type="text/javascript" src="{{ js }}/jscalendar/calendar-setup.js"></script>
<!-- /calendar -->
<!-- softwarefabrica.django.forms -->
<script language="javascript" type="text/javascript">
<!--
{% include "forms/js/Related.js" %}
// -->
</script>
<!-- /softwarefabrica.django.forms -->
  </head>

  {% block xbody %}
  <body>
    {% block body %}
    {% block xcontainer %}
    <div id="container">
      {% block container %}

      {% block xheader %}
      <div id="header">
        {% block header %}
          <h1>DEMO WIKI</h1>
        {% endblock header %}
      </div>
      {% endblock xheader %}

      {% block xnav %}
      <div id="nav">
        {% block nav %}
          <!-- Navigation -->
        {% endblock nav %}
      </div>
      {% endblock xnav %}

      {% block xoutercontents %}
      <div id="outercontents">
        {% comment %}<h1>{% if title %}{{ title }}{% else %}Wiki{% endif %}</h1>{% endcomment %}

        {% block xpagetop %}
        <div id="pagetop">
          {% block pagetop %}
          {% endblock pagetop %}
          <hr />
        </div>
        {% endblock xpagetop %}

	{% if messages %}
	<div id="messages" class="notice">
	  {% if messages|length_is:"1" %}
	    {% for message in messages %}
	    <p>{{ message }}</p>
	    {% endfor %}
	  {% else %}
	    <ul>
	    {% for message in messages %}
	      <li>{{ message }}</li>
	    {% endfor %}
	    </ul>
	  {% endif %}
	</div>
	{% endif %}

        {% block xcontents %}
        <div class="contents">
          {% block contents %}
          <!-- Main content -->
          {% endblock contents %}
        </div>
        {% endblock xcontents %}

        {% block xpagebottom %}
        <div id="pagebottom">
          <hr />
          {% block pagebottom %}
          {% endblock pagebottom %}
        </div>
        {% endblock xpagebottom %}
      </div>
      {% endblock xoutercontents %}

      {% block xsidebar %}
      <div id="sidebar">
        {% block sidebar %}
        <b>Search</b>
        <form action="{% url wiki-search %}" method="get">
        <input type="text" name="q" />
        </form><br />

        {% if wiki %}Current wiki<br />
        <b><a href="{{ wiki.get_absolute_url }}">{{ wiki }}</a></b>{% endif %}
        <br /><br />

        <a href="{% url wiki-list %}">Wikis</a>
        {% if wiki %}{% wikimenu wiki %}{% else %}{% wikimenu %}{% endif %}
          <a href="{% url wiki-create %}">New wiki</a>
        <br />


        {% block sidebarextra %}
        {% endblock sidebarextra %}

        <div id="recentlymodified">
          Recently modified pages
          {% if wiki %}{% last_modified_pages wiki %}{% else %}{% last_modified_pages %}{% endif %}
        </div>

          <a href="/Sandbox/WikiSyntax/" class="help">Wiki syntax</a>
        {% endblock sidebar %}
      </div>
      {% endblock xsidebar %}

      {% block xfooter %}
      <div id="footer">
        {% block footer %}
          Powered by <a href="http://pypi.python.org/pypi/softwarefabrica.django.wiki">SoftwareFabrica wiki</a>.
        {% endblock footer %}
      </div>
      {% endblock xfooter %}

      {% endblock container %}
    </div>
    {% endblock xcontainer %}
    {% endblock body %}
  </body>
  {% endblock xbody %}
</html>
