Skip to content

Commit

Permalink
Merge pull request #3408 from sseago/cloud_volume_backups_link
Browse files Browse the repository at this point in the history
BZ1519292: link to volume backups from storage provider page
(cherry picked from commit 3432cea)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1554889
  • Loading branch information
mzazrivec authored and simaishi committed Mar 13, 2018
1 parent f70a062 commit e1bb400
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/ems_common.rb
Expand Up @@ -88,6 +88,7 @@ def display_methods
cloud_tenants
cloud_volumes
cloud_volume_snapshots
cloud_volume_backups
configuration_jobs
container_builds
container_groups
Expand Down
6 changes: 5 additions & 1 deletion app/helpers/ems_storage_helper/textual_summary.rb
Expand Up @@ -11,7 +11,7 @@ def textual_group_properties
def textual_group_relationships
TextualGroup.new(
_("Relationships"),
%i(parent_ems_cloud cloud_volumes cloud_volume_snapshots cloud_object_store_containers)
%i(parent_ems_cloud cloud_volumes cloud_volume_snapshots cloud_volume_backups cloud_object_store_containers)
)
end

Expand Down Expand Up @@ -71,6 +71,10 @@ def textual_cloud_volume_snapshots
textual_link(@record.try(:cloud_volume_snapshots), :label => _('Cloud Volume Snapshots'))
end

def textual_cloud_volume_backups
textual_link(@record.try(:cloud_volume_backups), :label => _('Cloud Volume Backups'))
end

def textual_cloud_object_store_containers
@record.try(:cloud_object_store_containers)
end
Expand Down

0 comments on commit e1bb400

Please sign in to comment.