Skip to content

Commit

Permalink
Merge pull request #177 from tisdall/static_template_tag
Browse files Browse the repository at this point in the history
switch to `static` tag so STATIC_URL is unneeded
  • Loading branch information
JohananOppongAmoateng authored Jan 4, 2025
2 parents ee1a0f4 + 08856a2 commit 2392545
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions floppyforms/templates/floppyforms/gis/openlayers.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% load l10n %}
{% load l10n static %}
<style type="text/css">
#{{ attrs.id }}_map { width: {{ map_width }}px; height: {{ map_height }}px; }
#{{ attrs.id }}_map .aligned label { float: inherit; }
#{{ attrs.id }}_span_map { position: relative; vertical-align: top; float: left; }
{% if not display_wkt %}#{{ attrs.id }} { display: none; }{% endif %}
.olControlEditingToolbar .olControlModifyFeatureItemActive {
background-image: url("{{ STATIC_URL }}floppyforms/gis/img/move_vertex_on.png");
background-image: url("{% static "floppyforms/gis/img/move_vertex_on.png" %}");
background-repeat: no-repeat;
}
.olControlEditingToolbar .olControlModifyFeatureItemInactive {
background-image: url("{{ STATIC_URL }}floppyforms/gis/img/move_vertex_off.png");
background-image: url("{% static "floppyforms/gis/img/move_vertex_off.png" %}");
background-repeat: no-repeat;
}
</style>
Expand Down

0 comments on commit 2392545

Please sign in to comment.