ManageIQ/manageiq-ui-classic

View on GitHub
app/views/vm_common/_policies.html.haml

Summary

Maintainability
Test Coverage
#main_div
  = render :partial => "layouts/flash_msg"
  = render(:partial => 'vm_common/policy_options')
  %hr
  %h3
    = _('Policy Simulation Details')

  .btn.btn-default{:id => "squash_button", :onclick => "miqSquashToggle('#{j_str(@policy_simulation_tree.name.to_s)}')", :title => _('Collapse All')}
    %i{:class => "fa fa-minus-square-o fa-lg"}

  = render(:partial => 'shared/tree', :locals => {:tree => @policy_simulation_tree, :name => @policy_simulation_tree.name})

  = _('* Items in <font color="red"><i>red italics</i></font> do not change the outcome of the scope or expression.').html_safe

- unless @explorer
  #buttons{:align => 'right'}
    -# Go back to policy simulation screen
    = link_to(_('Back'),
              {:action => 'policy_sim', :continue => true, :controller => 'vm'},
               :class  => 'btn btn-default',
               :alt    => t = _('Back'),
               :title  => t,
               :method => :post)