Changeset - e35210568664
[Not reviewed]
default
0 2 0
Marcin Kuzminski - 15 years ago 2010-05-21 02:13:34
marcin@python-works.com
files browser updated to use webhelpers huminizer for file size
2 files changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
pylons_app/templates/files/files.html
Show inline comments
 
@@ -22,13 +22,12 @@
 
</%def>
 
<%def name="css()">
 
<link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" />
 
<link rel="stylesheet" href="/css/pygments.css" type="text/css" />
 
</%def>
 
<%def name="main()">
 

	
 
    <h2 class="no-link no-border">${_('Files')}</h2>
 
	<div id="files_data">
 
	%if c.files_list:
 
		<h2>${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cur_rev,c.files_list.path)}</h2>
 
			%if c.files_list.is_dir():
 
				<%include file='files_browser.html'/>
pylons_app/templates/files/files_browser.html
Show inline comments
 
@@ -38,13 +38,13 @@
 
				<tr class="parity${cnt%2}">
 
		             <td>
 
						${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))}
 
		             </td>
 
		             <td>
 
		                %if node.is_file():
 
		             		${h.filesizeformat(node.size)}
 
		             		${h.format_byte_size(node.size,binary=True)}
 
		             	%endif
 
		             </td>
 
		             <td>
 
		             	%if node.is_file():
 
		             		${node.last_changeset.revision}
 
		             	%endif
0 comments (0 inline, 0 general)