possibilité d'afficher les images du dossier carousel
This commit is contained in:
@@ -19,7 +19,7 @@ def blog(request):
|
||||
return HTTPFound(location=request.route_url('home'))
|
||||
|
||||
# insèrer le path de static/img
|
||||
body = entry.body.replace('static/img/', "%s/static/img/" % request.application_url)
|
||||
body = entry.body.replace('static/', "%s/static/" % request.application_url)
|
||||
# convertir mardown en HTML
|
||||
markdowner = Markdown()
|
||||
body_html = markdowner.convert(body)
|
||||
@@ -169,7 +169,7 @@ def topic(request):
|
||||
markdowner = Markdown()
|
||||
topic_quote = markdowner.convert(topic_record.topic_quote)
|
||||
# insèrer le path de static/img
|
||||
topic_quote = topic_quote.replace('static/img/', "%s/static/img/" % request.application_url)
|
||||
topic_quote = topic_quote.replace('static/', "%s/static/" % request.application_url)
|
||||
|
||||
# get all the tags of this topic
|
||||
tags = BlogRecordService.get_tags_byTopic(request, topic)
|
||||
|
||||
Reference in New Issue
Block a user