templates: replace STATIC_URL by static directive (#57851)

This commit is contained in:
Benjamin Dauvergne 2021-10-14 12:05:51 +02:00
parent 0b9bfe9b68
commit 76d90b31d2
4 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@
{% load static i18n %}
{% block css %}
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/combo.manager.css"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/combo.manager.css" %}"/>
{% endblock %}
{% block extrascripts %}

View File

@ -1,9 +1,9 @@
{% extends "combo/manager_base.html" %}
{% load i18n %}
{% load static i18n %}
{% block css %}
{{ block.super }}
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/combo.manager.pwa.css"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/combo.manager.pwa.css" %}"/>
{% endblock %}
{% block appbar %}

View File

@ -2,7 +2,7 @@
{% load static i18n %}
{% block css %}
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/combo.manager.css"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/combo.manager.css" %}"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "xstatic/leaflet.css" %}"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/combo.map.css" %}"/>
{% endblock %}

View File

@ -1,4 +1,4 @@
{% load gadjo i18n %}<!DOCTYPE html>
{% load static gadjo i18n %}<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
@ -6,9 +6,9 @@
<meta name="description" content="{{ page.description}}" />
{% endif %}
<title>Combo - {{ page.title }}</title>
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/combo-style.css"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/combo-style.css" %}"/>
<script src="{% xstatic 'jquery' 'jquery.min.js' %}"></script>
<script src="{{ STATIC_URL }}js/combo.public.js"></script>
<script src="{% static "js/combo.public.js" %}"></script>
{{ media }}
</head>
<body class="page-{{ page.slug }}"