diff --git a/app/presenters/build_status_table.rb b/app/presenters/build_status_table.rb index 0ae8ed9..a131449 100644 --- a/app/presenters/build_status_table.rb +++ b/app/presenters/build_status_table.rb @@ -9,7 +9,7 @@ def initialize(builds, view_context) private def get_table_items(builds) builds.map do |build| - StatusTableItem.new(build.id, build.model.name, build.status, build_status_path(id: build.build_id)) + StatusTableItem.new(build.id, build.model.name, build.created_at, build.status, build_status_path(id: build.build_id)) end end end diff --git a/app/presenters/model_status_table.rb b/app/presenters/model_status_table.rb index 6e1f45b..9a28a0f 100644 --- a/app/presenters/model_status_table.rb +++ b/app/presenters/model_status_table.rb @@ -9,7 +9,7 @@ def initialize(models_with_status, view_context) private def get_table_items(models_with_status) models_with_status.map do |id, data| - StatusTableItem.new(id, data[:model].name, data[:status], model_status_path(id: id)) + StatusTableItem.new(id, data[:model].name, data[:model].creation_date, data[:status], model_status_path(id: id)) end end end diff --git a/app/presenters/status_table.rb b/app/presenters/status_table.rb index 7eec174..4daa171 100644 --- a/app/presenters/status_table.rb +++ b/app/presenters/status_table.rb @@ -8,5 +8,5 @@ def initialize(table_name, items) end end -class StatusTableItem < Struct.new(:id, :name, :status, :uri) +class StatusTableItem < Struct.new(:id, :name, :date, :status, :uri) end diff --git a/app/views/shared/_status_table.html.haml b/app/views/shared/_status_table.html.haml index c6dd836..57f0791 100644 --- a/app/views/shared/_status_table.html.haml +++ b/app/views/shared/_status_table.html.haml @@ -2,6 +2,7 @@ %thead %tr %th ID + %th Date %th Status %th Name %tbody @@ -9,6 +10,8 @@ %tr %td = link_to(item.id, item.uri) + %td + = item.date %td.text-center = item.status %td