diff rhodecode/templates/changelog/changelog.html @ 1884:0614862a20ec beta

Added number of comments in changelog for each changeset - significantly improved speed of changelog page for large repos
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 11 Jan 2012 17:59:15 +0200
parents 496cfa1025e7
children 350d95dece6f
line wrap: on
line diff
--- a/rhodecode/templates/changelog/changelog.html	Tue Jan 10 07:01:12 2012 +0200
+++ b/rhodecode/templates/changelog/changelog.html	Wed Jan 11 17:59:15 2012 +0200
@@ -64,8 +64,14 @@
 						</div>	
 						<div class="right">
 									<div id="${cs.raw_id}_changes_info" class="changes">
-                                        <span id="${cs.raw_id}" class="changed_total tooltip" title="${_('Affected number of files, click to show more details')}">${len(cs.affected_files)}</span>
-									</div>					
+                                        <div id="${cs.raw_id}"  style="float:right;" class="changed_total tooltip" title="${_('Affected number of files, click to show more details')}">${len(cs.affected_files)}</div>
+                                        <div class="comments-container">
+                                        %if len(c.comments.get(cs.raw_id,[])) > 0:
+                                            <div class="comments-cnt" title="${('comments')}">${len(c.comments.get(cs.raw_id,[]))}</div>
+                                            <img src="${h.url('/images/icons/comments.png')}">
+                                        %endif    
+                                        </div>
+									</div>
 								   %if cs.parents:
 									%for p_cs in reversed(cs.parents):
 										<div class="parent">${_('Parent')}