[bitbake-devel] [PATCH 05/19] toaster: Format package size in recipe.html
Alex DAMIAN
alexandru.damian at intel.com
Fri Mar 14 17:58:46 UTC 2014
From: Belen Barros Pena <belen.barros.pena at intel.com>
Package sizes in the recipe details page (recipe.html)
were displaying in bytes. Apply the filtered_filesizeformat
project tag to show the package size in a more human
readable format.
Signed-off-by: Belen Barros Pena <belen.barros.pena at intel.com>
---
lib/toaster/toastergui/templates/recipe.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/toaster/toastergui/templates/recipe.html b/lib/toaster/toastergui/templates/recipe.html
index 29c9728..716ddfa 100644
--- a/lib/toaster/toastergui/templates/recipe.html
+++ b/lib/toaster/toastergui/templates/recipe.html
@@ -159,7 +159,7 @@
<tr>
<td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td>
<td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.version}}_{{package.revision}}</a></td>
- <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.size}}</a></td>
+ <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.size|filtered_filesizeformat}}</a></td>
</tr>
{% endfor %}
--
1.8.3.2
More information about the bitbake-devel
mailing list