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'))
|
return HTTPFound(location=request.route_url('home'))
|
||||||
|
|
||||||
# insèrer le path de static/img
|
# 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
|
# convertir mardown en HTML
|
||||||
markdowner = Markdown()
|
markdowner = Markdown()
|
||||||
body_html = markdowner.convert(body)
|
body_html = markdowner.convert(body)
|
||||||
@@ -169,7 +169,7 @@ def topic(request):
|
|||||||
markdowner = Markdown()
|
markdowner = Markdown()
|
||||||
topic_quote = markdowner.convert(topic_record.topic_quote)
|
topic_quote = markdowner.convert(topic_record.topic_quote)
|
||||||
# insèrer le path de static/img
|
# 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
|
# get all the tags of this topic
|
||||||
tags = BlogRecordService.get_tags_byTopic(request, topic)
|
tags = BlogRecordService.get_tags_byTopic(request, topic)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ def home(request):
|
|||||||
# get the Activities section
|
# get the Activities section
|
||||||
activ = BlogRecordService.get_activities(request)
|
activ = BlogRecordService.get_activities(request)
|
||||||
# insèrer le path de static/img
|
# 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
|
# get the last created posts
|
||||||
last_five = BlogRecordService.get_last_created(request)
|
last_five = BlogRecordService.get_last_created(request)
|
||||||
name = ''
|
name = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user