mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-17 09:01:08 +00:00
Conditional use of deprecated admin_static templatetags
This commit is contained in:
parent
b0cb1901aa
commit
c8707aabe4
10 changed files with 51 additions and 11 deletions
|
|
@ -1,6 +1,10 @@
|
|||
{% extends fobi_theme.base_edit_template %}
|
||||
|
||||
{% load i18n admin_static %}
|
||||
{% if VERSIONS.DJANGO_GTE_2_1 %}
|
||||
{% load i18n static %}
|
||||
{% else %}
|
||||
{% load i18n admin_static %}
|
||||
{% endif %}
|
||||
|
||||
{% block page-title %}{% trans "Dashboard" %}{% endblock page-title %}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
{% extends "fobi/generic/edit_form_entry.html" %}
|
||||
|
||||
{% load i18n admin_static %}
|
||||
{% if VERSIONS.DJANGO_GTE_2_1 %}
|
||||
{% load i18n static %}
|
||||
{% else %}
|
||||
{% load i18n admin_static %}
|
||||
{% endif %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/changelists.css' %}" />
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
{% extends "fobi/generic/import_form_entry.html" %}
|
||||
|
||||
{% load i18n admin_static %}
|
||||
{% if VERSIONS.DJANGO_GTE_2_1 %}
|
||||
{% load i18n static %}
|
||||
{% else %}
|
||||
{% load i18n admin_static %}
|
||||
{% endif %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/changelists.css' %}" />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
{% load admin_static future_compat %}{#% load firstof from future %#}<!DOCTYPE html>
|
||||
{% if VERSIONS.DJANGO_GTE_2_1 %}
|
||||
{% load static future_compat %}
|
||||
{% else %}
|
||||
{% load admin_static future_compat %}
|
||||
{% endif %}<!DOCTYPE html>
|
||||
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}{% block html-attributes %}{% endblock html-attributes %}>
|
||||
<head>
|
||||
<title>{% block page-title %}{% endblock page-title %} | {% block site-title %}{% endblock site-title %}</title>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
{% extends fobi_theme.base_edit_template %}
|
||||
|
||||
{% load i18n admin_static %}
|
||||
{% if VERSIONS.DJANGO_GTE_2_1 %}
|
||||
{% load i18n static %}
|
||||
{% else %}
|
||||
{% if VERSIONS.DJANGO_GTE_2_1 %}
|
||||
{% load i18n admin_static %}
|
||||
{% endif %}
|
||||
|
||||
{% block page-title %}{% trans "Dashboard" %}{% endblock page-title %}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
{% extends "fobi/generic/edit_form_entry.html" %}
|
||||
|
||||
{% load i18n admin_static %}
|
||||
{% if VERSIONS.DJANGO_GTE_2_1 %}
|
||||
{% load i18n static %}
|
||||
{% else %}
|
||||
{% load i18n admin_static %}
|
||||
{% endif %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/changelists.css' %}" />
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
{% extends "fobi/generic/edit_form_wizard_entry.html" %}
|
||||
|
||||
{% load i18n admin_static %}
|
||||
{% if VERSIONS.DJANGO_GTE_2_1 %}
|
||||
{% load i18n static %}
|
||||
{% else %}
|
||||
{% load i18n admin_static %}
|
||||
{% endif %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/changelists.css' %}" />
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
{% extends fobi_theme.base_edit_template %}
|
||||
|
||||
{% load i18n admin_static %}
|
||||
{% if VERSIONS.DJANGO_GTE_2_1 %}
|
||||
{% load i18n static %}
|
||||
{% else %}
|
||||
{% load i18n admin_static %}
|
||||
{% endif %}
|
||||
|
||||
{% block page-title %}{% trans "Form wizards dashboard" %}{% endblock page-title %}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
{% extends "fobi/generic/import_form_entry.html" %}
|
||||
|
||||
{% load i18n admin_static %}
|
||||
{% if VERSIONS.DJANGO_GTE_2_1 %}
|
||||
{% load i18n static %}
|
||||
{% else %}
|
||||
{% load i18n admin_static %}
|
||||
{% endif %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/changelists.css' %}" />
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
{% extends "admin/base_site.html" %}
|
||||
{% load i18n l10n admin_static %}
|
||||
{% load admin_urls %}
|
||||
{% if VERSIONS.DJANGO_GTE_2_1 %}
|
||||
{% load i18n l10n static admin_urls %}
|
||||
{% else %}
|
||||
{% load i18n l10n admin_static admin_urls %}
|
||||
{% endif %}
|
||||
|
||||
{% block title %}{% trans "Edit multiple objects" %} | {% trans 'Django site admin' %}{% endblock %}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue