Source

djangocong_2011 / templates / blog / base_blog.html

Full commit
{% extends "base.html" %}
{% load localeurl_tags %}

{% block body_class %}blog{% endblock %}

{% block lang %}
  <div id="lang">
    {% for lang in LANGUAGES %}
      {% ifequal lang.0 LANGUAGE_CODE %}
        <span class="selected">{{ lang.1 }}</span>
      {% else %}
        <span><a href="{{ request.path|chlocale:lang.0 }}">{{ lang.1 }}</a></span>
      {% endifequal %}
    {% endfor %}
  </div>
{% endblock %}