diff rhodecode/templates/files/files_history_box.html @ 3001:37c7abd34d44 beta

implements #636, lazy loading of history and authors to speed up page responsiveness. - loading full history is not always needed, and it's very heavy operation. Now this is lazy loaded when clicking on button
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 13 Nov 2012 22:26:06 +0100
parents
children 685ebc84c2e9
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/templates/files/files_history_box.html	Tue Nov 13 22:26:06 2012 +0100
@@ -0,0 +1,25 @@
+<dl>
+    <dt class="file_history">${_('History')}</dt>
+    <dd>
+        <div>
+            <div style="float:left">
+            ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')}
+            ${h.hidden('diff2',c.file_changeset.raw_id)}
+            ${h.select('diff1',c.file_changeset.raw_id,c.file_history)}
+            ${h.submit('diff',_('diff to revision'),class_="ui-btn")}
+            ${h.submit('show_rev',_('show at revision'),class_="ui-btn")}
+            ${h.hidden('annotate', c.annotate)}
+            ${h.end_form()}
+            </div>
+            <div class="file_author">
+                <div class="item">${h.literal(ungettext(u'%s author',u'%s authors',len(c.authors)) % ('<b>%s</b>' % len(c.authors))) }</div>
+                %for email, user in c.authors:
+                  <div class="contributor tooltip" style="float:left" title="${h.tooltip(user)}">
+                    <div class="gravatar" style="margin:1px"><img alt="gravatar" src="${h.gravatar_url(email, 20)}"/> </div>
+                  </div>
+                %endfor
+            </div>
+        </div>
+        <div style="clear:both"></div>
+    </dd>
+</dl>
\ No newline at end of file