Add user theme in list articles
This commit is contained in:
@@ -139,7 +139,7 @@ def personnalize_blog():
|
||||
|
||||
if blog_theme != "Default":
|
||||
copy( "static/blog-"+blog_theme+".css",
|
||||
DOSSIER_PERSO+ user +'blog.css' )
|
||||
DOSSIER_PERSO+ user +'/blog.css' )
|
||||
|
||||
if f: # On vérifie qu'un fichier a bien été envoyé
|
||||
nom = secure_filename(f.filename)
|
||||
@@ -167,7 +167,7 @@ def viewmyblog():
|
||||
for post in list_posts:
|
||||
posts=[dict(title=post[0], subtitle=post[1], creation_date=post[2], author=post[3], status=post[4])] + posts
|
||||
|
||||
return render_template('index_blog.html', section='Blog', posts=posts)
|
||||
return render_template('index_blog.html', section='Blog', posts=posts, author=user)
|
||||
|
||||
|
||||
@blog.route('/private-blog/', methods=['GET'])
|
||||
@@ -223,7 +223,7 @@ def viewuser(author):
|
||||
posts=[dict(title=post[0], subtitle=post[1], creation_date=post[2], last_updated=post[3], author=post[4], status=post[5])] + posts
|
||||
|
||||
|
||||
return render_template('index_author_blog.html', section='Blog', posts=posts)
|
||||
return render_template('index_author_blog.html', section='Blog', posts=posts, author=author)
|
||||
|
||||
@blog.route('/blog/<author>/rss.xml', methods=['GET'])
|
||||
def viewauthorrss(author):
|
||||
|
||||
Reference in New Issue
Block a user