@@ -56,36 +56,24 @@
%elif c.file.is_binary:
<div>
${_('Binary file (%s)') % c.file.mimetype}
</div>
%else:
%if c.file.size < c.cut_off_limit or c.fulldiff:
%if c.annotate:
${h.pygmentize_annotation(c.repo_name,c.file,linenos=True,anchorlinenos=True,lineanchors='L',cssclass="code-highlight")}
${h.pygmentize(c.file,linenos=True,anchorlinenos=True,lineanchors='L',cssclass="code-highlight")}
%endif
<h4>
${_('File is too big to display.')}
${h.link_to(_('Show full annotation anyway.'), h.url.current(fulldiff=1, **request.GET.mixed()))}
${h.link_to(_('Show as raw.'), h.url('files_raw_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path))}
</h4>
<script>
$(document).ready(function(){
var state = {
node_list_url: node_list_url.replace('__REV__',${h.js(c.changeset.raw_id)}).replace('__FPATH__', ${h.js(h.safe_unicode(c.file.path))}),
url_base: url_base.replace('__REV__',${h.js(c.changeset.raw_id)}),
rev: ${h.js(c.changeset.raw_id)},
f_path: ${h.js(h.safe_unicode(c.file.path))}
}
window.history.pushState(state, null, ${h.js(h.url.current())});
});
</script>
Status change: