comparison templates/sat_website/base.html @ 26:3df49721008c

upgrade to Bootstrap v3.3.1
author souliane <souliane@mailoo.org>
date Mon, 19 Jan 2015 21:22:40 +0100
parents 930e73ea9e8e
children eda4deefecd1
comparison
equal deleted inserted replaced
25:930e73ea9e8e 26:3df49721008c
23 {% get_current_language as LANGUAGE_CODE %} 23 {% get_current_language as LANGUAGE_CODE %}
24 24
25 <!DOCTYPE html> 25 <!DOCTYPE html>
26 <html lang="{{ LANGUAGE_CODE }}"> 26 <html lang="{{ LANGUAGE_CODE }}">
27 <head> 27 <head>
28 <link rel="stylesheet" href="{% static "css/bootstrap.css" %}"> 28 <meta charset="utf-8">
29 <link rel="stylesheet" href="{% static "css/bootstrap-responsive.css" %}"> 29 <meta http-equiv="X-UA-Compatible" content="IE=edge">
30 <link rel="stylesheet" href="{% static "css/sat_website.css" %}"> 30 <meta name="viewport" content="width=device-width, initial-scale=1">
31 <link rel="icon" type="image/png" href="{% static "images/sat_logo_32.png" %}"> 31 <link href="{% static "bootstrap/css/bootstrap.min.css" %}" rel="stylesheet">
32 <title>{% block title %}{% trans "Salut à Toi: the multi-frontends, multi-purposes communication tool" %}{% endblock %}</title> 32 <link rel="stylesheet" href="{% static "css/sat_website.css" %}">
33 <link rel="icon" type="image/png" href="{% static "images/sat_logo_32.png" %}">
34 <title>{% block title %}{% trans "Salut à Toi: the multi-frontends, multi-purposes communication tool" %}{% endblock %}</title>
33 </head> 35 </head>
34 <body> 36 <body>
35 <div class="navbar navbar-fixed-top"> 37 <nav class="navbar navbar-inverse navbar-fixed-top">
36 <div class="navbar-inner"> 38 <div class="container">
37 <div class="container"> 39 <div class="navbar-header" id="navbar-header">
38 <ul class="nav"> 40 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
39 <img id="sat_logo" src="{% static "images/sat_logo_32.png" %}"></li> 41 <span class="sr-only">Toggle navigation</span>
40 <a class="brand" href="overview.html">Salut à Toi</a> 42 <span class="icon-bar"></span>
41 {#<li><a href="#">Overview</a></li>#} 43 <span class="icon-bar"></span>
42 {% for cat_url,cat_name in categories.items %} 44 <span class="icon-bar"></span>
43 <li><a href="{{ cat_url }}.html">{{ cat_name }}</a></li> 45 </button>
44 {% endfor %} 46 <img id="sat_logo" src="{% static "images/sat_logo_32.png" %}">
45 </ul> 47 <a class="navbar-brand" href="overview.html">
46 <ul class="nav pull-right"> 48 Salut à Toi
47 <li><a href="https://www.libervia.org"><strong>{% trans "Try online demo" %}</strong></a> </li> 49 </a>
48 {% if latest_dl_path and latest_version %} 50 </div>
51 <div id="navbar" class="collapse navbar-collapse">
52 <ul class="nav navbar-nav">
53 {% for cat_url,cat_name in categories.items %}
54 <li><a href="{{ cat_url }}.html">{{ cat_name }}</a></li>
55 {% endfor %}
56 </ul>
57 <ul class="nav navbar-nav pull-right">
58 <li><a href="https://www.libervia.org"><strong>{% trans "Try online demo" %}</strong></a> </li>
59 {% if latest_dl_path and latest_version %}
49 <li><a href="{{ latest_dl_path }}"><strong>{% trans "Download SàT" %} {{ latest_version }}</strong></a> </li> 60 <li><a href="{{ latest_dl_path }}"><strong>{% trans "Download SàT" %} {{ latest_version }}</strong></a> </li>
50 {% endif %} 61 {% endif %}
51 </ul> 62 </ul>
52 </div> 63 </div>
53 </div> 64 </div>
54 </div> 65 </nav>
55 {% block content %}{% endblock %} 66
56 <div class="container"> 67 {% block content %}{% endblock %}
57 <div class="row" id="language"> 68
58 <form class="well form-inline" action="{% url 'set_language' %}" method="post"> 69 <div class="container">
59 {% csrf_token %} 70 <div class="row" id="language">
60 <input name="next" type="hidden" value="{{ redirect_to }}" /> 71 <form class="well form-inline" action="{% url 'set_language' %}" method="post">
61 <select name="language"> 72 {% csrf_token %}
62 {% get_language_info_list for available_languages as languages %} 73 <input name="next" type="hidden" value="{{ redirect_to }}" />
63 {% for language in languages %} 74 <select name="language">
64 <option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>{{ language.name_local }} ({{ language.code }})</option> 75 {% get_language_info_list for available_languages as languages %}
65 {% endfor %} 76 {% for language in languages %}
66 </select> 77 <option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>{{ language.name_local }} ({{ language.code }})</option>
67 <input type="submit" value="{% trans "Change language" %}" /> 78 {% endfor %}
68 </form> 79 </select>
69 </div> 80 <input type="submit" value="{% trans "Change language" %}" />
70 </div> 81 </form>
82 </div>
83 </div>
84 <script src="{% static "js/jquery.min.js" %}"></script>
85 <script src="{% static "bootstrap/js/bootstrap.min.js" %}"></script>
71 </body> 86 </body>
72 </html> 87 </html>