add {{ site_base }} to static URL, for shared template support

This commit is contained in:
Frédéric Péters 2015-05-28 14:49:23 +02:00
parent c6cae2bb71
commit 49e74abca5
6 changed files with 28 additions and 28 deletions

View File

@ -54,8 +54,8 @@ $( "#tabs" ).tabs({cookie: {path: '/'}});
{% endblock %}
{% block extra_scripts %}
<script type="text/javascript" src="{{ STATIC_URL }}jquery/js/jquery.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}jquery/js/jquery.cookie.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}jquery/js/jquery-ui.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}jquery/js/jquery.simplemodal.js"></script>
<script type="text/javascript" src="{{ site_base }}{{ STATIC_URL }}jquery/js/jquery.js"></script>
<script type="text/javascript" src="{{ site_base }}{{ STATIC_URL }}jquery/js/jquery.cookie.js"></script>
<script type="text/javascript" src="{{ site_base }}{{ STATIC_URL }}jquery/js/jquery-ui.js"></script>
<script type="text/javascript" src="{{ site_base }}{{ STATIC_URL }}jquery/js/jquery.simplemodal.js"></script>
{% endblock %}

View File

@ -5,19 +5,19 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ STATIC_URL }}css/style.css">
<link rel="shortcut icon" href="{{ STATIC_URL }}img/favicon.ico" />
<link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/style.css">
<link rel="shortcut icon" href="{{ site_base }}{{ STATIC_URL }}img/favicon.ico" />
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{ STATIC_URL }}css/font-awesome.css" rel="stylesheet">
<link href="{{ site_base }}{{ STATIC_URL }}css/font-awesome.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="{{ STATIC_URL }}css/bootstrap.min.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/bootstrap-theme.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/slick.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/app.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/hack.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/entrouvert.css" >
<link rel="stylesheet" href="{{ STATIC_URL }}css/surclass.css">
<link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/bootstrap.min.css">
<link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/bootstrap-theme.css">
<link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/slick.css">
<link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/app.css">
<link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/hack.css">
<link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/entrouvert.css" >
<link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/surclass.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
@ -29,7 +29,7 @@
</head>
<body {% block bodyargs %}{% endblock %} style="background: url({{ STATIC_URL }}img/Background-par-defaut.jpg) no-repeat;background-size: 100% auto; background-position: center top;">
<body {% block bodyargs %}{% endblock %} style="background: url({{ site_base }}{{ STATIC_URL }}img/Background-par-defaut.jpg) no-repeat;background-size: 100% auto; background-position: center top;">
<div class="body">
<div id="wrap" class="container">
@ -70,8 +70,8 @@
{% include "footer.html" %}
</div></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="{{ STATIC_URL }}js/jquery.stellar.min.js" ></script>
<script src="{{ STATIC_URL }}js/bootstrap.min.js" ></script>
<script src="{{ site_base }}{{ STATIC_URL }}js/jquery.stellar.min.js" ></script>
<script src="{{ site_base }}{{ STATIC_URL }}js/bootstrap.min.js" ></script>
<script>
function layouting() {
if ( window.matchMedia('(min-width: 992px)').matches) {

View File

@ -3,7 +3,7 @@
<div class="row">
<div class="col-lg-5 col-md-4 col-xs-16">
<div class="footer--logotype">
<img width="298" height="59" src="{{ STATIC_URL }}img/logo2.png" alt="">
<img width="298" height="59" src="{{ site_base }}{{ STATIC_URL }}img/logo2.png" alt="">
</div>
</div>
<div class="col-lg-3 col-md-4 col-xs-16">
@ -41,31 +41,31 @@
<div class="object-aucun">
<div class="image">
<a href="http://www.villes-internet.net/" target="_blank">
<img src="{{ STATIC_URL }}img/ville-Internet.png" width="113" height="78" alt="Ville Internet 4 @ 2014">
<img src="{{ site_base }}{{ STATIC_URL }}img/ville-Internet.png" width="113" height="78" alt="Ville Internet 4 @ 2014">
</a>
</div>
</div>
<div class="object-aucun">
<div class="image">
<img src="{{ STATIC_URL }}img/Ville-et-pays-d-art-et-d-Histoire.png" width="68" height="73" alt="Ville et pays d'art et d'Histoire">
<img src="{{ site_base }}{{ STATIC_URL }}img/Ville-et-pays-d-art-et-d-Histoire.png" width="68" height="73" alt="Ville et pays d'art et d'Histoire">
</div>
</div>
<div class="object-aucun">
<div class="image">
<img src="{{ STATIC_URL }}img/Ville-fleurie-3.png" width="154" height="57" alt="Ville fleurie 3*">
<img src="{{ site_base }}{{ STATIC_URL }}img/Ville-fleurie-3.png" width="154" height="57" alt="Ville fleurie 3*">
</div>
</div>
<div class="object-aucun">
<div class="image">
<a href="{{site_vincennes_url}}/Decouvrir-Vincennes/Office-de-tourisme/Villes-royales-d-Ile-de-France" target="_self">
<img src="{{ STATIC_URL }}img/Villes-royales.png" width="154" height="57" alt="Villes royales en Ile-de-France">
<img src="{{ site_base }}{{ STATIC_URL }}img/Villes-royales.png" width="154" height="57" alt="Villes royales en Ile-de-France">
</a>
</div>
</div>
<div class="">
<div class="image">
<a href="{{site_vincennes_url}}/Famille/Enfance" target="_self">
<img src="{{ STATIC_URL }}img/ville-amie-des-enfants.png" width="163" height="57" alt="Ville amie des enfants">
<img src="{{ site_base }}{{ STATIC_URL }}img/ville-amie-des-enfants.png" width="163" height="57" alt="Ville amie des enfants">
</a>
</div>
</div>
@ -101,7 +101,7 @@
<div class="container">
<div class="row">
<div class="footer--subvention pull-right col-lg-16 col-md-16 hidden-sm hidden-xs">
<img src="{{ STATIC_URL }}img/Ile-de-france.jpg" class="pull-right" alt="">
<img src="{{ site_base }}{{ STATIC_URL }}img/Ile-de-france.jpg" class="pull-right" alt="">
Ce site a fait lobjet dune subvention de la Région Ile-de-France
</div>
</div>

View File

@ -5,7 +5,7 @@
<div class="row">
<a href="{{ site_vincennes_url }}">
<div class="cont-logo">
<img class="header--logotype" src="{{ STATIC_URL }}img/Ville-de-Vincennes.png" width="294" height="41" alt="vincennes.fr (Aller à l'accueil)">
<img class="header--logotype" src="{{ site_base }}{{ STATIC_URL }}img/Ville-de-Vincennes.png" width="294" height="41" alt="vincennes.fr (Aller à l'accueil)">
</div>
</a>
</div>
@ -44,7 +44,7 @@
<a href="{{ idp_url }}/accounts/">
<i class="fa fa-caret-right"></i> Compte citoyen
<span class="icon-user">
<img src="{{ STATIC_URL }}img/compte-citoyen2.png" alt="">
<img src="{{ site_base }}{{ STATIC_URL }}img/compte-citoyen2.png" alt="">
</span>
</a>
</li>

View File

@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="{{ STATIC_URL }}authentic2/css/style.css" />
<link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}authentic2/css/style.css" />
<title>{% block title %}User test{% endblock %}</title>
{% block extra_scripts %}
{% endblock %}

View File

@ -84,6 +84,6 @@
<a href="{{ site_vincennes_url }}/Newsletter" class="right_bar--newsletter btn">Newsletter</a>
<a href="https://www.facebook.com/pages/Vincennes-ma-ville-/233686538037" class="right_bar--facebook btn"><i class="fa fa-facebook"></i></a>
<a href="https://twitter.com/Vincennes_94300" class="right_bar--twitter btn"><i class="fa fa-twitter"></i></a>
<a href="http://www.dailymotion.com/vincennestv" class="right_bar--dailymotion btn"><img src="{{ STATIC_URL }}img/logo_dailymotion@2x.png" width="56" height="56" alt=""></a>
<a href="http://www.dailymotion.com/vincennestv" class="right_bar--dailymotion btn"><img src="{{ site_base }}{{ STATIC_URL }}img/logo_dailymotion@2x.png" width="56" height="56" alt=""></a>
<a href="{{ site_vincennes_url}}/flux-rss" class="right_bar--rss btn"><i class="fa fa-rss"></i></a>
</div-->