Use markdown in feature description
This commit is contained in:
parent
3b7131f2fd
commit
53f9a904b2
3 changed files with 8 additions and 1 deletions
|
@ -4,4 +4,5 @@ django-leaflet-storage==0.3.0
|
|||
django_compressor==1.2
|
||||
django-social-auth==0.7.20
|
||||
git+git://github.com/yohanboniface/vectorformats.git@leafletstorage
|
||||
hg+https://bitbucket.org/liberation/sesql
|
||||
hg+https://bitbucket.org/liberation/sesql
|
||||
Markdown==2.3.1
|
|
@ -46,6 +46,7 @@ INSTALLED_APPS = (
|
|||
'django.contrib.admin',
|
||||
'django.contrib.admindocs',
|
||||
'django.contrib.gis',
|
||||
'django.contrib.markup',
|
||||
)
|
||||
|
||||
#==============================================================================
|
||||
|
|
5
umap/templates/leaflet_storage/feature_detail.html
Normal file
5
umap/templates/leaflet_storage/feature_detail.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{% load markup %}
|
||||
<h5>{{ feature }}</h5>
|
||||
{% if feature.description %}
|
||||
<div>{{ feature.description|urlize|markdown }}</div>
|
||||
{% endif %}
|
Loading…
Reference in a new issue