diff --git a/rhodecode/templates/files/files_source.html b/rhodecode/templates/files/files_source.html --- a/rhodecode/templates/files/files_source.html +++ b/rhodecode/templates/files/files_source.html @@ -1,29 +1,13 @@ -
-
${_('History')}
-
-
-
- ${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()} -
-
-
${h.literal(ungettext(u'%s author',u'%s authors',len(c.authors)) % ('%s' % len(c.authors))) }
- %for email, user in c.authors: -
-
gravatar
-
- %endfor -
-
-
-
+
+%if c.load_full_history: + <%include file='files_history_box.html'/> +%else: +
+ ${_('Load file history')} +
+%endif +
-
@@ -113,6 +97,15 @@ YUE.onDOMReady(function(){ } - YUE.on('hlcode','mouseup',getSelectionLink("${_('Selection link')}")) + // select code link event + YUE.on('hlcode', 'mouseup', getSelectionLink); + + //load history of file + YUE.on('load_node_history', 'click', function(e){ + var _url = node_history_url.replace('__REV__','${c.file_changeset.raw_id}').replace('__FPATH__', '${c.f_path}'); + ypjax(_url, 'node_history', function(o){}) + }); + }); +