diff options
author | Collin Anderson <cmawebsite@gmail.com> | 2015-01-12 08:27:25 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-01-12 10:54:59 -0500 |
commit | 58833f519797e15ae3cb39b1613e5f7e09c96952 (patch) | |
tree | c33ddb579cd3230ca14a8a67c9d61b63532b8d8c /django/contrib/gis | |
parent | a7c256cb5491bf2a77abdff01638239db5bfd9d5 (diff) | |
download | django-58833f519797e15ae3cb39b1613e5f7e09c96952.tar.gz |
Made Django's templates get their own LANGUAGE_* variables.
Refs #24117
Diffstat (limited to 'django/contrib/gis')
-rw-r--r-- | django/contrib/gis/templates/gis/admin/openlayers.html | 2 | ||||
-rw-r--r-- | django/contrib/gis/templates/gis/openlayers.html | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/django/contrib/gis/templates/gis/admin/openlayers.html b/django/contrib/gis/templates/gis/admin/openlayers.html index 592c6c9e71..0f5716e40c 100644 --- a/django/contrib/gis/templates/gis/admin/openlayers.html +++ b/django/contrib/gis/templates/gis/admin/openlayers.html @@ -1,5 +1,5 @@ {% block extrastyle %} -{% load static %} +{% load i18n static %}{% get_current_language_bidi as LANGUAGE_BIDI %} <style type="text/css"> #{{ id }}_map { width: {{ map_width }}px; height: {{ map_height }}px; } #{{ id }}_map .aligned label { float:inherit; } diff --git a/django/contrib/gis/templates/gis/openlayers.html b/django/contrib/gis/templates/gis/openlayers.html index 4884f48106..5cb46a59cb 100644 --- a/django/contrib/gis/templates/gis/openlayers.html +++ b/django/contrib/gis/templates/gis/openlayers.html @@ -1,14 +1,14 @@ -<style type="text/css">{% block map_css %} +<style type="text/css">{% block map_css %}{% load i18n static %}{% get_current_language_bidi as LANGUAGE_BIDI %} #{{ id }}_map { width: {{ map_width }}px; height: {{ map_height }}px; } #{{ id }}_map .aligned label { float: inherit; } #{{ id }}_div_map { position: relative; vertical-align: top; float: {{ LANGUAGE_BIDI|yesno:"right,left" }}; } {% if not display_raw %}#{{ id }} { display: none; }{% endif %} .olControlEditingToolbar .olControlModifyFeatureItemActive { - background-image: url("{{ STATIC_URL }}admin/img/gis/move_vertex_on.png"); + background-image: url("{% static "admin/img/gis/move_vertex_on.png" %}); background-repeat: no-repeat; } .olControlEditingToolbar .olControlModifyFeatureItemInactive { - background-image: url("{{ STATIC_URL }}admin/img/gis/move_vertex_off.png"); + background-image: url("{% static "admin/img/gis/move_vertex_off.png" %}); background-repeat: no-repeat; }{% endblock %} </style> |