possibilité d'afficher les images du dossier carousel

This commit is contained in:
2022-05-23 08:41:36 +02:00
parent 618d4aa3c2
commit c93d456aa3
2 changed files with 3 additions and 3 deletions

View File

@@ -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)

View File

@@ -37,7 +37,7 @@ def home(request):
# get the Activities section
activ = BlogRecordService.get_activities(request)
# insèrer le path de static/img
activities = activ.body.replace('static/img/', "%s/static/img/" % request.application_url)
activities = activ.body.replace('static/', "%s/static/" % request.application_url)
# get the last created posts
last_five = BlogRecordService.get_last_created(request)
name = ''