Sha256: 55230388c302f3e7b22388faef9a54debbabd10442b68d86f0a260046dba145f

Contents?: true

Size: 1.58 KB

Versions: 2

Compression:

Stored size: 1.58 KB

Contents

<%= webpacked_plugins_js_for :foreman_ansible %>
<%= stylesheet 'foreman_ansible/foreman-ansible' %>
<% if ansible_run_in_check_mode?(logs.first) %>
  <%= alert :class => 'alert-info',
            :header => _('Ansible check mode'),
            :text => _('Notice that ansible roles run in check mode.')%>

<% end %>
<table id='report_log' class="<%= table_css_classes %>">
  <thead>
    <tr>
      <th><%= _("Level") %></th>
      <th><%= _("Task") %></th>
      <th><%= _("Message") %></th>
    </tr>
  </thead>
  <tbody>
    <% logs.each do |log| %>
      <% unless check_mode_log?(log) %>
        <tr>
          <td><span <%= report_tag log.level %>><%= h log.level %></span></td>
          <td><span title=<%= ansible_module_name(log) %>><%= ansible_task_name(log) %></span></td>
          <td>
            <% log_message = ansible_module_message(log) %>
            <% if log_message.is_a? Array %>
              <ul>
                <% log_message.each do |message_line| %>
                  <li><%= message_line %></li>
                <% end %>
              </ul>
            <% else %>
              <% allowed_length = 150 %>
              <div class='pull-left'>
                <%= truncate(log_message, length: allowed_length) %>
              </div>
              <%= show_full_error_message_value(log_message) if log_message.length > allowed_length %>
            <% end %>
          </td>
        </tr>
      <% end %>
    <% end %>
    <tr id='ntsh' <%= "style='display: none;'".html_safe if logs.size > 0%>><td colspan="3">
        <%= _("Nothing to show") %>
      </td></tr>
  </tbody>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_ansible-11.1.0 app/views/foreman_ansible/config_reports/_ansible.html.erb
foreman_ansible-11.0.0 app/views/foreman_ansible/config_reports/_ansible.html.erb