diff 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
line wrap: on
line diff
--- a/templates/sat_website/base.html	Mon Jan 19 14:23:56 2015 +0100
+++ b/templates/sat_website/base.html	Mon Jan 19 21:22:40 2015 +0100
@@ -25,48 +25,63 @@
 <!DOCTYPE html>
 <html lang="{{ LANGUAGE_CODE }}">
 <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>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <link href="{% static "bootstrap/css/bootstrap.min.css" %}" rel="stylesheet">
+    <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>
-				<ul class="nav pull-right">
-                        <li><a href="https://www.libervia.org"><strong>{% trans "Try online demo" %}</strong></a> </li>
-					{% if latest_dl_path and latest_version %}
+    <nav class="navbar navbar-inverse navbar-fixed-top">
+        <div class="container">
+            <div class="navbar-header" id="navbar-header">
+                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
+                    <span class="sr-only">Toggle navigation</span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                </button>
+                <img id="sat_logo" src="{% static "images/sat_logo_32.png" %}">
+                <a class="navbar-brand" href="overview.html">
+                    Salut à Toi
+                </a>
+            </div>
+            <div id="navbar" class="collapse navbar-collapse">
+                <ul class="nav navbar-nav">
+                    {% for cat_url,cat_name in categories.items %}
+                        <li><a href="{{ cat_url }}.html">{{ cat_name }}</a></li>
+                    {% endfor %}
+                </ul>
+                <ul class="nav navbar-nav pull-right">
+                    <li><a href="https://www.libervia.org"><strong>{% trans "Try online demo" %}</strong></a> </li>
+                    {% if latest_dl_path and latest_version %}
                         <li><a href="{{ latest_dl_path }}"><strong>{% trans "Download SàT" %} {{ latest_version }}</strong></a> </li>
-					{% endif %}
-				</ul>
-			</div>  
-		</div>  
-	</div>   
-{% block content %}{% endblock %}
-	<div class="container">
-		<div class="row" id="language">
-				<form class="well form-inline" action="{% url 'set_language' %}" 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 }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>{{ language.name_local }} ({{ language.code }})</option>
-						{% endfor %}
-					</select>
-					<input type="submit" value="{% trans "Change language" %}" />
-				</form>
-		</div>
-	</div>
+                    {% endif %}
+                </ul>
+            </div>
+        </div>
+    </nav>
+
+    {% block content %}{% endblock %}
+
+    <div class="container">
+        <div class="row" id="language">
+            <form class="well form-inline" action="{% url 'set_language' %}" 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 }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>{{ language.name_local }} ({{ language.code }})</option>
+                    {% endfor %}
+                </select>
+                <input type="submit" value="{% trans "Change language" %}" />
+            </form>
+        </div>
+    </div>
+    <script src="{% static "js/jquery.min.js" %}"></script>
+    <script src="{% static "bootstrap/js/bootstrap.min.js" %}"></script>
 </body>
 </html>