## -*- 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)"> <% pr_index_ver = comment.get_index_version(getattr(c, 'versions', [])) %> % if inline: <% outdated_at_ver = comment.outdated_at_version(getattr(c, 'at_version_num', None)) %> % else: <% outdated_at_ver = comment.older_than_version(getattr(c, 'at_version_num', None)) %> % endif
outdated ${'v{}'.format(pr_index_ver)} |
% elif pr_index_ver:${'v{}'.format(pr_index_ver)} |
% endif${'v{}'.format(pr_index_ver)}