<% if ansible_report?(logs.first) %> <%= render :partial => 'foreman_ansible/config_reports/ansible', :locals => { :logs => logs } %> <% else %> <%= render_original, :locals => { :logs => logs } %> <% end %>