Mercurial > kallithea
diff rhodecode/templates/files/files_source.html @ 1043:6ec53c16c744 beta
fixed binary file issues
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 14 Feb 2011 15:29:53 +0100 |
parents | 59b7131c15b1 |
children | ed5270522724 |
line wrap: on
line diff
--- a/rhodecode/templates/files/files_source.html Mon Feb 14 15:16:45 2011 +0100 +++ b/rhodecode/templates/files/files_source.html Mon Feb 14 15:29:53 2011 +0100 @@ -36,6 +36,9 @@ <div class="commit">"${c.files_list.last_changeset.message}"</div> </div> <div class="code-body"> + %if c.files_list.is_binary: + ${_('Binary file')} + %else: % if c.files_list.size < c.cut_off_limit: ${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='L',cssclass="code-highlight")} %else: @@ -71,7 +74,8 @@ } highlight_lines(h_lines); } - </script> + </script> + %endif </div> </div>