{% load i18n %}
{% load txcommontags %}
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
{% load addons %}
<html lang="en">
<head>
  <title>{% block title %}{% trans "Transifex" %}{% endblock %}</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  {% block basecss %}
  <link media="screen" href="{{ STATIC_URL }}css/base.css" type="text/css" rel="stylesheet" />
  <link media="screen" href="{{ STATIC_URL }}css/stats.css" type="text/css" rel="stylesheet" />
  <link media="screen" href="{{ STATIC_URL }}css/icons.css" type="text/css" rel="stylesheet" />
  <link media="screen" href="{{ STATIC_URL }}userprofile/css/django-profile.css" type="text/css" rel="stylesheet"  />
  <link media="screen" href="{{ STATIC_URL }}userprofile/css/tx.css" type="text/css" rel="stylesheet" />
  {% endblock %}
  {% block basejs %}
  <script type="text/javascript" src="{{ STATIC_URL }}js/jquery-1.3.2.min.js"></script>
  <script type="text/javascript" src="{{ STATIC_URL }}js/json2.min.js"></script>
  <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>
  <script type="text/javascript" src="{{ STATIC_URL }}js/base.js"></script>
  <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.qtip-1.0.0-rc2.min.js"></script>
  {% endblock %}
  {% block shortcut_icon %}
  <link rel="shortcut icon" href="{{ STATIC_URL }}images/favicon.ico" type="image/x-icon" />
  {% endblock %}
  {% block extracss %}{% endblock %}
  {% block extrajs %}{% endblock %}
  {% block extra_head %}{% endblock %}
  {% hook "base.html" head %}
</head>
<body id="{% block body_id %}{% endblock %}" class="{% block body_class %}{% endblock %}">
<div id="wrapper">
  <div id="header">
    <div id="logo">
      <a class="simlink" href="{% url transifex.home %}" title="{% trans "Go to the start page" %}">
        {% block logo %}<img border="0" src="{{ STATIC_URL }}images/tx-logo.png"  alt="{% trans "Go to start page" %}" />{% endblock %}
      </a>
    </div>
    <div id="navmenu">
      <a href="{% url project_list %}" title="{% trans "The projects being served" %}">{% trans "Projects" %}</a>
      | <a href="{% url language_list %}" title="{% trans "The languages our service serves" %}">{% trans "Languages" %}</a>
    </div>
    <div id="header_secnav">
      <!-- <span id="login">-->
          {% if user.is_authenticated %}
              {% hook "transifex_base.html" global-usernav %}
              {% url profile_overview as user_profile %} 
              {% blocktrans with user.username as user_username %}Welcome <a title="Profile settings" href="{{ user_profile }}">{{ user_username }}</a>!{% endblocktrans %}&nbsp; | &nbsp;
              <form action="{% url logout %}?next={{request.path}}" method="POST" class="microform">
                <input type="submit" title="{% trans "Sign out from the website" %}" class="i16 logout buttonize" value="{% trans "Sign out" %}" />
              </form>
          {% else %}
              <a href="{% url login %}?next={{request|get_next}}">{% trans "Sign in" %}</a>
              {% url signup as signup_url %}
              {% if signup_url %}
              &nbsp; | &nbsp; <a href="{{ signup_url }}">{% trans "Register" %}</a>
              {% endif %}
          {% endif %}
      <!--</span> -->
    {% url django.views.i18n.set_language as set_language_url %} &nbsp;
    <form id="global-language-chooser" class="microform" action="{{ set_language_url }}" method="post">
        <input name="next" type="hidden" value="{{ request.path }}" />
            <select id="language_switch" name="language">
            {% for lang in LANGUAGES %}
               <option value="{{ lang.0 }}" {% ifequal request.session.django_language lang.0 %}selected="selected"{% endifequal %}>{{ lang.0 }}</option>
            {% endfor %}
            </select>
    </form>
    </div>
    <div id="header_trinav">
    {% block header_trinav %}
      {% include "search_form_plain.html" %}
    {% endblock %}
    </div>
  </div>
        
  <div id="content">
    <div id="content_header">
    {% block content_header %}
      <div id="breadcrumbs">
        {% block breadcrumb %}{% homelink %}{% endblock %}
      </div>
      <div id="content_title">
        {% block content_title %}{% endblock %}
      </div>
      <div id="content_header_sec">
        {% block content_header_sec %}{% endblock %}
      </div>
    {% endblock %}
    </div>
    <div id="body">
      {% block content %}
        <div id="body_sec">
          {% block content_sec %}{% endblock %}
        </div>
        <div id="body_main">
          {% block messages %}
            {% if messages %}
                <div class="messages">
                {% for message in messages %}
                    <span class="i16 tip message">{{ message }}</span> 
                {% endfor %}
                </div>
            {% endif %}
          {% endblock %}
        {% block content_main %}{% endblock %}
        </div>
      {% endblock %}
    </div>
    <div id="content_footer">
      {% block content_footer %}{% endblock %}
    </div>
  </div>
</div>

  <div id="footer">{% block footer %}
    <p class="main-footer center">
      {% block footerlinks %}{% trans "About" %} | <a href="{% url contact_form %}" title="{% trans "Drops us a line" %}">{% trans "Feedback" %}</a>{% endblock %}
    </p>
    {% block powered %}<p class="powered">{% blocktrans %}Powered by <a href="http://transifex.org/" title="Transifex community">Transifex</a>, the Open Translation Platform{% endblocktrans %}</p>{% endblock %}
    {% block txversionblock %}<p class="version">v{% txversion_full %} </p>{% endblock %}
    {% block extrafooter %}{% endblock %}
  {% endblock %}</div>
{% block bodyend %}{% endblock %}
</body>
</html>
