Projet

Général

Profil

0001-template-use-jQuery-from-CDN.patch

Benjamin Dauvergne, 13 août 2014 14:56

Télécharger (1,9 ko)

Voir les différences:

Subject: [PATCH 01/10] template: use jQuery from CDN

 gadjo/templates/gadjo/base.html |   16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
gadjo/templates/gadjo/base.html
3 3
  <head>
4 4
    <meta charset="utf-8"/>
5 5
    <title>{% block page-title %}{% endblock %}</title>
6
    {% if debug %}
7
      <link rel="stylesheet" type="text/css" media="all" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.min.css"/>
8
    {% else %}
9
      <link rel="stylesheet" type="text/css" media="all" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.min.css"/>
10
    {% endif %}
6 11
    <link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/gadjo.css"/>
7
    <link rel="stylesheet" type="text/css" media="all"
8
          href="{{ STATIC_URL }}css/smoothness/jquery-ui-1.10.4.custom.min.css"/>
9 12
    {% block css %}
10 13
    <link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/style.css"/>
11 14
    {% endblock %}
12
    <script src="{{ STATIC_URL }}js/jquery-1.11.0.min.js"></script>
13
    <script src="{{ STATIC_URL }}js/jquery-ui-1.10.4.custom.min.js"></script>
15
    {% if debug %}
16
      <script src="http://code.jquery.com/jquery-1.11.1.js"></script>
17
      <script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
18
    {% else %}
19
      <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
20
      <script src="http://code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script>
21
    {% endif %}
14 22
    <script src="{{ STATIC_URL }}js/gadjo.js"></script>
15 23
    {% block extrascripts %}
16 24
    {% endblock %}
17
-