Project

General

Profile

Download (682 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman-docker / app / overrides / remove_docker_from_compute_profiles.rb @ 04b6e05e

1
Deface::Override.new(
2
  :virtual_path => 'compute_profiles/show',
3
  :name => 'remove_docker_from_compute_profiles',
4
  :replace => "erb[silent]:contains('ComputeResource.authorized(:view_compute_resources)')",
5
  :text => "<% ComputeResource.where.not(:type => 'ForemanDocker::Docker').
6
                 authorized(:view_compute_resources).each do |compute_resource| %>"
7
)
8

    
9
Deface::Override.new(
10
  :virtual_path => 'compute_resources/show',
11
  :name => 'remove_compute_profiles_tab',
12
  :replace => 'a[href="#compute_profiles"]',
13
  :text => "<%= link_to(_('Compute profiles'), '#compute_profiles', :'data-toggle' => 'tab') unless @compute_resource.type == 'ForemanDocker::Docker' %>"
14
)