Skip to content

Commit

Permalink
Fixes #26818 - add filtering info to config detail (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
ares committed May 22, 2019
1 parent e9cdadc commit 9ce15ec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/views/foreman_virt_who_configure/configs/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@
<%= config_attribute :satellite_url, @config.satellite_url, _('Satellite server FQDN')%>
<%= config_attribute :hypervisor_id, @config.hypervisor_id, _('Hypervisor ID') %>
<%= config_attribute :listing_mode, _(ForemanVirtWhoConfigure::Config::FILTERING_MODES[@config.listing_mode.to_s]), _('Filtering') %>
<%= config_attribute :whitelist, @config.whitelist if @config.whitelist.present? %>
<%= config_attribute :blacklist, @config.blacklist if @config.blacklist.present? %>
<% if @config.listing_mode == ForemanVirtWhoConfigure::Config::WHITELIST %>
<%= config_attribute :whitelist, @config.whitelist, _('Filter Hosts') if @config.whitelist.present? %>
<%= config_attribute :filter_host_parents, @config.filter_host_parents if @config.filter_host_parents.present? %>
<% end %>
<% if @config.listing_mode == ForemanVirtWhoConfigure::Config::BLACKLIST %>
<%= config_attribute :blacklist, @config.blacklist, _('Exclude Hosts') if @config.blacklist.present? %>
<%= config_attribute :exclude_host_parents, @config.exclude_host_parents if @config.exclude_host_parents.present? %>
<% end %>
<%= config_attribute :debug, checked_icon(@config.debug), _('Enable debugging output?') %>
<%= config_attribute :proxy, @config.proxy if @config.proxy.present? %>
<%= config_attribute :no_proxy, @config.no_proxy if @config.no_proxy.present? %>
Expand Down

0 comments on commit 9ce15ec

Please sign in to comment.