comparison rhodecode/templates/files/files_source.html @ 1241:ed5270522724 beta

changed raw action to show images instead of saying about binary file added mimetype to binary file text
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 10 Apr 2011 19:54:49 +0200
parents 6ec53c16c744
children 5a96551ee9c0
comparison
equal deleted inserted replaced
1240:2c558e2264b4 1241:ed5270522724
35 <div class="revision">${c.files_list.name}@r${c.files_list.last_changeset.revision}:${h.short_id(c.files_list.last_changeset.raw_id)}</div> 35 <div class="revision">${c.files_list.name}@r${c.files_list.last_changeset.revision}:${h.short_id(c.files_list.last_changeset.raw_id)}</div>
36 <div class="commit">"${c.files_list.last_changeset.message}"</div> 36 <div class="commit">"${c.files_list.last_changeset.message}"</div>
37 </div> 37 </div>
38 <div class="code-body"> 38 <div class="code-body">
39 %if c.files_list.is_binary: 39 %if c.files_list.is_binary:
40 ${_('Binary file')} 40 ${_('Binary file (%s)') % c.files_list.mimetype}
41 %else: 41 %else:
42 % if c.files_list.size < c.cut_off_limit: 42 % if c.files_list.size < c.cut_off_limit:
43 ${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='L',cssclass="code-highlight")} 43 ${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='L',cssclass="code-highlight")}
44 %else: 44 %else:
45 ${_('File is to big to display')} ${h.link_to(_('show as raw'), 45 ${_('File is to big to display')} ${h.link_to(_('show as raw'),