view templates/sat_website/base.html @ 8:c70038fb98dc

Social Contract (Contrat Social) localisation
author Goffi <goffi@goffi.org>
date Thu, 02 Aug 2012 01:45:18 +0200
parents 0df46e87537d
children 755ccdb0c62a
line wrap: on
line source

{% comment %}
SàT website: Salut à Toi's presentation website
Copyright (C) 2012  Jérôme Poisson (goffi@goffi.org)

This file is part of SàT website.

SàT website is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Foobar is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}

{% load staticfiles %}
{% load i18n %}

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<head>
		<link rel="stylesheet" href="{% static "css/bootstrap.css" %}">
		<link rel="stylesheet" href="{% static "css/bootstrap-responsive.css" %}">
		<link rel="stylesheet" href="{% static "css/sat_website.css" %}">
		<link rel="icon" type="image/png" href="{% static "images/sat_logo_32.png" %}">
		<title>{% block title %}{% trans "Salut à Toi: the multi-frontends, multi-purposes communication tool" %}{% endblock %}</title>
</head>
<body>
	<div class="navbar navbar-fixed-top">  
		<div class="navbar-inner">  
			<div class="container">  
				<ul class="nav"> 
					<img id="sat_logo" src="{% static "images/sat_logo_32.png" %}"></li>
					<a class="brand" href="overview.html">Salut à Toi</a>
					{#<li><a href="#">Overview</a></li>#}
					{% for cat_url,cat_name in categories.items %}
						<li><a href="{{ cat_url }}.html">{{ cat_name }}</a></li>  
					{% endfor %}
				</ul>
                {% if latest_dl_path and latest_version %}
                    <ul class="nav pull-right">
                        <li><a href="{{ latest_dl_path }}"><strong>{% trans "Download SàT" %} {{ latest_version }}</strong></a> </li>
                        
                    </ul>
                {% endif %}
			</div>  
		</div>  
	</div>   
{% block content %}{% endblock %}
	<div class="container">
		<div class="row" id="language">

				<form class="well form-inline" action="/i18n/setlang/" method="post">
					{% csrf_token %}
					<input name="next" type="hidden" value="{{ redirect_to }}" />
					<select name="language">
						{% get_language_info_list for available_languages as languages %}
						{% for language in languages %}
							<option value="{{ language.code }}">{{ language.name_local }} ({{ language.code }})</option>
						{% endfor %}
					</select>
					<input type="submit" value="{% trans "Change language" %}" />
				</form>
		</div>
	</div>
</body>
</html>