diff --git a/RIGS/templatetags/markdown_tags.py b/RIGS/templatetags/markdown_tags.py index 36699bec..280099bb 100644 --- a/RIGS/templatetags/markdown_tags.py +++ b/RIGS/templatetags/markdown_tags.py @@ -7,6 +7,7 @@ __author__ = 'ghost' register = template.Library() + @register.filter(name="markdown") def markdown_filter(text, input_format='html'): # markdown library can't handle text=None @@ -33,7 +34,7 @@ def markdown_filter(text, input_format='html'): bq.name = 'pre' bq.string = bq.text - for alist in soup.find_all(['ul','ol']): + for alist in soup.find_all(['ul', 'ol']): alist['style'] = alist.name for li in alist.find_all('li', recursive=False): text = li.find(text=True) diff --git a/assets/templates/asset_create.html b/assets/templates/asset_create.html index 14b4b66a..d4ccc56c 100644 --- a/assets/templates/asset_create.html +++ b/assets/templates/asset_create.html @@ -1,9 +1,36 @@ {% extends 'base_assets.html' %} +{% load static %} {% load widget_tweaks %} {% block title %}Asset {{ object.asset_id }}{% endblock %} -{% block content %} +{% block css %} + +{% endblock %} +{% block preload_js %} + +{% endblock %} + +{% block js %} + + + +{% endblock %} + +{% block content %}