Sha256: 95681e558bfd36592cfc343f7eb7b882e5b3317cebe12a286faf01f5bd382347

Contents?: true

Size: 1.13 KB

Versions: 15

Compression:

Stored size: 1.13 KB

Contents

<% if assignment.single_visual_result? %>
  <%= assignment.single_visual_result_html %>
<% else %>
  <strong><%= t :test_results %>:</strong>
  <ul class="results-list">
    <% assignment.test_results.each_with_index do |test_result, index| %>
      <li>
        <% if test_result[:status] == :failed %>
          <span class="text-danger">
            <%= status_icon(test_result[:status]) %>
            <strong class="example-title"><%= test_result[:title] %></strong>
            <% unless assignment.visible_success_output? %>
              <a data-toggle="collapse" href="#example-result-<%= index %>"  class="example-see-more">Ver detalles</a>
            <% end %>
          </span>
        <% else %>
          <span class="text-success example-title">
            <%= status_icon(test_result[:status]) %>
            <%= test_result[:title] %>
          </span>
        <% end %>

        <div class="example-result collapse <%= 'in' if assignment.visible_success_output? %>" id="example-result-<%= index %>">
          <%= assignment.output_content_type.to_html test_result[:result] %>
        </div>
      </li>
    <% end %>
  </ul>
<% end %>



Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mumuki-laboratory-5.1.1 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.1.0 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.0.12 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.0.11 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.0.10 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.0.9 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.0.8 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.0.7 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.0.6 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.0.5 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.0.4 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.0.3 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.0.2 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.0.1 app/views/layouts/_test_results.html.erb
mumuki-laboratory-5.0.0 app/views/layouts/_test_results.html.erb