Mango / templates / _base.html

<!DOCTYPE html>
{% load mango %}
<html>
  <head>
{% block head %}
    <meta charset="utf-8" />
    <title>{% block title %}{{ SITE_TITLE }}{% endblock %}</title>

  {% block feeds %}
    <link rel="alternate" type="application/atom+xml" href="{% url mango.feeds.atom %}" />
  {% endblock %}

  {% for stylesheet in stylesheets %}
    {{ stylesheet }}
  {% endfor %}

    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
{% endblock %}
  </head>

{% block bodytag %}
  <body>
{% endblock %}
{% block body %}
    <div id="wrap">
      <header id="header">
  {% url mango.views.index as path %}
  {% if request.path == path %}
        <h1 id="title">{{ SITE_TITLE }}</h1>
  {% else %}
        <a id="title" href="{{ path }}">{{ SITE_TITLE }}</a>
  {% endif %}

  {% block navigation %}
        <nav>
          <ul>
    {% block nav %}
      {% if ARCHIVES %}{% url mango.views.archives as path %}
            <li>{% if request.path == path %}Archives{% else %}<a href="{{ path }}">Archives</a>{% endif %}</li>
      {% endif %}
      {% if TAGS_PAGE %}{% url mango.views.tags as path %}
            <li>{% if request.path == path %}Tags{% else %}<a href="{{ path }}">Tags</a>{% endif %}</li>
      {% endif %}
      {% if CONTACT_FORM %}{% url mango.views.contact as path %}
            <li>{% if request.path == path %}Contact{% else %}<a href="{{ path }}">Contact</a>{% endif %}</li>
      {% endif %}
    {% endblock %}
          </ul>
        </nav>
  {% endblock %}

  {% if SEARCH %}
        <form action="{% url mango.views.search %}">
          <div>
            <label for="query">Search</label>
            <input type="search" id="query" name="query"{% if terms %} value="{{ terms|to_query_string }}"{% endif %} />
          </div>
          <div>
            <input type="submit" value="Search" />
          </div>
        </form>
  {% endif %}
      </header>

      <div id="main">
  {% block content %}
  {% endblock %}
      </div>
    </div>

    <footer id="footer">
  {% block footer %}
      <p>Powered by <a href="http://mango.io/">Mango</a></p>
  {% endblock %}
    </footer>

  {% block scripts %}
    {% for script in scripts %}
    {{ script }}
    {% endfor %}
    {% if request|internal %}
    <script>
      {% include "js/flushcache.js" %}
    </script>
    {% endif %}
  {% endblock %}

  {% block analytics %}
    {% if GOOGLE_ANALYTICS_ID and not settings.DEBUG %}
    <script>
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', '{{ GOOGLE_ANALYTICS_ID }}']);
      _gaq.push(['_trackPageview']);

      (function () {
        var ga = document.createElement('script');
        ga.type = 'text/javascript';
        ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
      }());
    </script>
    {% endif %}
  {% endblock %}
    <!-- Generated by Mango -->
{% endblock %}
  </body>
</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.