{# Copyright (C) 2007-2020 CodeResort.com - BV Network AS (simon-code@bvnetwork.no) This software is licensed as described in the file COPYING, which you should have received as part of this distribution. #} # extends 'layout.html' # include "macros.html" ignore missing # block title Blog${blog_post and ': ' + blog_post.title or req.args.get('blog_path') and blog_list_title and ': ' + blog_list_title} ${ super() } # endblock title # block head ${ super() } # if blog_post_list: # endif # if blog_post and blog_post.version: # endif # endblock # block content # import "fullblog_macro_post.html" as render with context
# include "fullblog_sidebar.html"
# if blog_post and blog_post.version: ${render.render_blog_post(blog_post)} # if not list_mode and ('BLOG_MODIFY_ALL' in perm(blog_post.resource) or (blog_post.author==perm.username and 'BLOG_MODIFY_OWN' in perm(blog_post.resource))):
# if attach_file_form: ${attach_file_form(blog_attachments)} # else: # set alist = blog_attachments # include "attach_file_form.html" # endif # if 'BLOG_DELETE' in perm(blog_post.resource):
# endif
# endif # if list_of_attachments: ${list_of_attachments(blog_attachments, compact=True)} # else: # set alist = blog_attachments # set compact = True # include "list_of_attachments.html" # endif # with # set blog_comments = blog_post.get_comments()

Comments

# if blog_comments: # for comment in blog_comments:
# if 'BLOG_DELETE' in perm(blog_post.resource): Delete comment # endif
${comment.number}. ${authorinfo(comment.author)} -- ${pretty_dateinfo and pretty_dateinfo(comment.time) or format_datetime(comment.time)}
${wiki_to_html(context, comment.comment)}
# endfor # else:

No comments.

# endif
# endwith #if 'BLOG_COMMENT' in perm(blog_post.resource):

Add New Comment

${jmacros.form_token_input()}

#if req.chrome.warnings: (Warnings) #endif
# if comment_preview: ${wiki_to_html(context, blog_comment.comment)} # endif

# endif # endif # if blog_post and not blog_post.version:

No blog post named '${blog_post.name}'. Create it!

# endif
${blog_list_title}
# if blog_post_list and not len(blog_post_list):

No blog posts available.

# endif # for blog_post in blog_post_list: ${render.render_blog_post(blog_post, list_mode=True)} # endfor
# endblock content