Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Commit

Permalink
Fixes #7894 - Compute resource should show 'containers' tab
Browse files Browse the repository at this point in the history
Through deface, we change the 'virtual machines' tab to say container on
Docker compute resources.
  • Loading branch information
dLobatog authored and David Davis committed Apr 1, 2016
1 parent a02da22 commit b8bf7d5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/overrides/rename_virtual_machines_containers.rb
@@ -0,0 +1,10 @@
Deface::Override.new(
:virtual_path => 'compute_resources/show',
:name => 'rename_virtual_machines_containers',
:replace => "erb[loud]:contains('Virtual Machines')",
:text => "<%= if @compute_resource.type == 'ForemanDocker::Docker'
_('Containers')
else
_('Virtual Machines')
end %>"
)

0 comments on commit b8bf7d5

Please sign in to comment.