changeset 168:e35210568664

files browser updated to use webhelpers huminizer for file size
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 21 May 2010 02:13:34 +0200
parents e5a25c57c97f
children 8e01265fb586
files pylons_app/templates/files/files.html pylons_app/templates/files/files_browser.html
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pylons_app/templates/files/files.html	Fri May 21 02:12:41 2010 +0200
+++ b/pylons_app/templates/files/files.html	Fri May 21 02:13:34 2010 +0200
@@ -25,7 +25,6 @@
 <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:
--- a/pylons_app/templates/files/files_browser.html	Fri May 21 02:12:41 2010 +0200
+++ b/pylons_app/templates/files/files_browser.html	Fri May 21 02:13:34 2010 +0200
@@ -41,7 +41,7 @@
 		             </td>
 		             <td>
 		                %if node.is_file():
-		             		${h.filesizeformat(node.size)}
+		             		${h.format_byte_size(node.size,binary=True)}
 		             	%endif
 		             </td>
 		             <td>