<!DOCTYPE html>
<!--
  Copyright 2010 Google Inc.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

  Original slides: Marcin Wichary (mwichary@google.com)
  Modifications: Ernest Delgado (ernestd@google.com)
                 Alex Russell (slightlyoff@chromium.org)

  landslide modifications: Adam Zapletal (adamzap@gmail.com)
                           Nicolas Perriault (nperriault@gmail.com)
-->
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    <title>{{ head_title }}</title>
    <!-- Styles -->
    {% if embed %}
    <style type="text/css" media="print">
      {{ css.print.contents }}
    </style>
    <style type="text/css" media="screen, projection">
      {{ css.screen.contents }}
    </style>
    {% else %}
    <link rel="stylesheet" media="print" href="{{ css.print.path_url }}">
    <link rel="stylesheet" media="screen, projection" href="{{ css.screen.path_url }}">
    {% endif %}
    <!-- /Styles -->
    <!-- Javascripts -->
    {% if embed %}
    <script>
      {{ js.contents }}
    </script>
    {% else %}
    <script type="text/javascript" src="{{ js.path_url }}"></script>
    {% endif %}
    <!-- /Javascripts -->
</head>
<body>
  <div class="presentation">
    <div class="slides">
      {% for slide in slides %}
      <div class="slide{% if slide.classes %} {{ slide.classes }}{% endif %}">
        <div class="inner">
          {% if slide.header %}
          <header>{{ slide.header }}</header>
          {% endif %}
          {% if slide.content %}
          <section>{{ slide.content }}</section>
          {% endif %}
        </div>
        <aside>
          <span class="page_number">{{ slide.number }}/{{ num_slides }}</span>
        </aside>
      </div>
      {% endfor %}
    </div>
  </div>
  {% if toc %}
  <div id="toc" class="hidden">
    <h2>Table of Contents</h2>
    <table>
      <caption>Table of Contents</caption>
      {% for section in toc %}      
      <tr id="toc-row-{{ section.number }}">
        <th><a href="#slide{{ section.number }}">{{ section.title }}</a></th>
        <td><a href="#slide{{ section.number }}">{{ section.number }}</a></td>
      </tr>
      {% if section.sub %}
        {% for subsection in section.sub %}
        <tr id="toc-row-{{ subsection.number }}" class="sub">
          <th><a href="#slide{{ subsection.number }}">{{ subsection.title }}</a></th>
          <td><a href="#slide{{ subsection.number }}">{{ subsection.number }}</a></td>
        </tr>
        {% endfor %}
      {% endif %}
      {% endfor %}
    </table>
  </div>
  {% endif %}
  <script>main()</script>
</body>
</html>
