## -*- coding: utf-8 -*-
## usage:
## <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/>
## ${comment.comment_block(comment)}
##
<%namespace name="base" file="/base/base.mako"/>
<%def name="comment_block(comment, inline=False)">
<% outdated_at_ver = comment.outdated_at_version(getattr(c, 'at_version', None)) %>
<% pr_index_ver = comment.get_index_version(getattr(c, 'versions', [])) %>
%def>
## generate main comments
<%def name="generate_comments(include_pull_request=False, is_pull_request=False)">
%def>
<%def name="comments(post_url, cur_status, is_pull_request=False, is_compare=False, change_status=True, form_extras=None)">
## merge status, and merge action
%if is_pull_request:
%if c.allowed_to_merge:
%else:
${c.pr_merge_msg} ${c.approval_msg if c.approval_msg else ''}
%endif
%endif
%def>
<%def name="comment_form(form_type, form_id='', lineno_id='{1}', review_statuses=None, form_extras=None)">
## comment injected based on assumption that user is logged in
%def>
outdated ${'v{}'.format(pr_index_ver)}
${'v{}'.format(pr_index_ver)}