Skip to content

Commit

Permalink
Show last refresh time & date in provider summary screen
Browse files Browse the repository at this point in the history
  • Loading branch information
mzazrivec committed Jun 12, 2017
1 parent 0139f49 commit 8033a3a
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/helpers/ems_cinder_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def textual_group_relationships
end

def textual_group_status
TextualGroup.new(_("Status"), textual_authentications(@record.authentication_for_summary) + %i(refresh_status))
TextualGroup.new(_("Status"), textual_authentications(@record.authentication_for_summary) + %i(refresh_status refresh_date))
end

def textual_group_smart_management
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/ems_cloud_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def textual_group_relationships
end

def textual_group_status
TextualGroup.new(_("Status"), textual_authentications(@record.authentication_for_summary) + %i(refresh_status))
TextualGroup.new(_("Status"), textual_authentications(@record.authentication_for_summary) + %i(refresh_status refresh_date))
end

def textual_group_smart_management
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/ems_container_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def textual_group_relationships
def textual_group_status
TextualGroup.new(
_("Status"),
textual_authentications_status + %i(authentications_status metrics_status refresh_status)
textual_authentications_status + %i(authentications_status metrics_status refresh_status refresh_date)
)
end

Expand Down
2 changes: 1 addition & 1 deletion app/helpers/ems_datawarehouse_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def textual_group_properties
end

def textual_group_status
TextualGroup.new(_("Status"), %i(refresh_status))
TextualGroup.new(_("Status"), %i(refresh_status refresh_date))
end

def textual_group_smart_management
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/ems_infra_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def textual_group_relationships
def textual_group_status
TextualGroup.new(
_("Status"),
textual_authentications(@record.authentication_userid_passwords) + %i(refresh_status orchestration_stacks_status)
textual_authentications(@record.authentication_userid_passwords) + %i(refresh_status refresh_date orchestration_stacks_status)
)
end

Expand Down
2 changes: 1 addition & 1 deletion app/helpers/ems_middleware_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def textual_group_relationships
end

def textual_group_status
TextualGroup.new(_("Status"), %i(refresh_status))
TextualGroup.new(_("Status"), %i(refresh_status refresh_date))
end

def textual_group_smart_management
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/ems_network_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def textual_group_relationships
end

def textual_group_status
TextualGroup.new(_("Status"), textual_authentications(@record.authentication_for_summary) + %i(refresh_status))
TextualGroup.new(_("Status"), textual_authentications(@record.authentication_for_summary) + %i(refresh_status refresh_date))
end

def textual_group_smart_management
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/ems_physical_infra_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def textual_group_relationships
def textual_group_status
TextualGroup.new(
_("Status"),
textual_authentications(@record.authentication_userid_passwords) + %i(refresh_status)
textual_authentications(@record.authentication_userid_passwords) + %i(refresh_status refresh_date)
)
end

Expand Down
2 changes: 1 addition & 1 deletion app/helpers/ems_storage_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def textual_group_relationships
end

def textual_group_status
TextualGroup.new(_("Status"), textual_authentications(@record.authentication_for_summary) + %i(refresh_status))
TextualGroup.new(_("Status"), textual_authentications(@record.authentication_for_summary) + %i(refresh_status refresh_date))
end

def textual_group_smart_management
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/ems_swift_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def textual_group_relationships
end

def textual_group_status
TextualGroup.new(_("Status"), textual_authentications(@record.authentication_for_summary) + %i(refresh_status))
TextualGroup.new(_("Status"), textual_authentications(@record.authentication_for_summary) + %i(refresh_status refresh_date))
end

def textual_group_smart_management
Expand Down
5 changes: 5 additions & 0 deletions app/helpers/textual_mixins/textual_refresh_status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ def textual_refresh_status
:title => @record.last_refresh_error
}
end

def textual_refresh_date
last_refresh_date = @record.last_refresh_date ? @record.last_refresh_date.in_time_zone(Time.zone) : nil
{:label => _("Last Refresh Date"), :value => last_refresh_date}
end
end

0 comments on commit 8033a3a

Please sign in to comment.