comments: properly show version of pull request into added comments.
- index them by numeric index instead of DB id - show inside main comments a version in which they were made.
This commit is contained in:
parent
f284c5877a
commit
f26ac86e28
8 changed files with 109 additions and 27 deletions
|
|
@ -176,10 +176,10 @@ collapse_all = len(diffset.files) > collapse_when_files_over
|
|||
'%(num)s files changed: %(linesadd)s inserted, %(linesdel)s deleted', diffset.changed_files) % {'num': diffset.changed_files, 'linesadd': diffset.lines_added, 'linesdel': diffset.lines_deleted}}
|
||||
%endif
|
||||
|
||||
<% at_ver = getattr(c, 'at_version_num', None) %>
|
||||
<% at_ver = getattr(c, 'at_version_pos', None) %>
|
||||
% if at_ver:
|
||||
<div class="pull-right">
|
||||
${_('Changes at version %d') % at_ver}
|
||||
${_('Showing changes at version %d') % at_ver}
|
||||
</div>
|
||||
% endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue