On 11/30/2011 08:42 PM, jprovazn(a)redhat.com wrote:
From: Jan Provaznik<jprovazn(a)redhat.com>
---
src/app/controllers/images_controller.rb | 1 +
src/app/views/images/_list.html.haml | 2 ++
src/config/locales/en.yml | 1 +
3 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/app/controllers/images_controller.rb
b/src/app/controllers/images_controller.rb
index 4859a6a..a4fdbfc 100644
--- a/src/app/controllers/images_controller.rb
+++ b/src/app/controllers/images_controller.rb
@@ -27,6 +27,7 @@ class ImagesController< ApplicationController
{ :name => t('images.index.os'), :sort_attr => :name },
{ :name => t('images.index.os_version'), :sort_attr => :name },
{ :name => t('images.index.architecture'), :sort_attr => :name
},
+ { :name => t('images.index.last_rebuild'), :sortable => false },
]
@images = Aeolus::Image::Warehouse::Image.all
respond_to do |format|
diff --git a/src/app/views/images/_list.html.haml b/src/app/views/images/_list.html.haml
index acb74f6..f4ae8a1 100644
--- a/src/app/views/images/_list.html.haml
+++ b/src/app/views/images/_list.html.haml
@@ -15,3 +15,5 @@
= image.os.version
%td
= image.os.arch
+ %td
+ = Time.at(image.latest_pushed_or_unpushed_build.timestamp.to_f) rescue ''
diff --git a/src/config/locales/en.yml b/src/config/locales/en.yml
index 1be281b..f112433 100644
--- a/src/config/locales/en.yml
+++ b/src/config/locales/en.yml
@@ -700,6 +700,7 @@ en:
os: OS
os_version: OS Version
architecture: Architecture
+ last_rebuild: Last Rebuild
show:
provider_images: Provider Images
provider_account: Provider Account
self ACKed & pushed