Sha256: 93194bc110f66daa9bf9125d2a68914796d5e3e8b41eaab324dc60372638ace8

Contents?: true

Size: 1.72 KB

Versions: 18

Compression:

Stored size: 1.72 KB

Contents

<%
  @guide = @exercise.guide
  @stats = @guide.stats_for(current_user)
%>

<% if assignment.results_hidden? %>
  <%= render partial: 'exercise_solutions/results_hidden', locals: {assignment: assignment} %>
<% elsif !assignment.attempts_left? %>
  <%= render partial: 'exercise_solutions/out_of_attempts', locals: {assignment: assignment} %>
<% else %>
  <%= render layout: 'exercise_solutions/contextualization_results_container', locals: {contextualization: assignment} do %>
    <%= manual_evaluation_comment assignment %>
    <% unless assignment.manual_evaluation_comment? %>
      <%= render layout: 'exercise_solutions/assistant_rules_box', locals: {assignment: assignment } do %>
        <%= render partial: 'exercise_solutions/contextualization_results_body', locals: {contextualization: assignment} %>
        <% if should_render_need_help_dropdown?(assignment) %>
          <div class="notify-problem-box">
            <div class="dropdown">
              <%= link_to fa_icon(:'question-circle', text: t(:need_help)), "", {'data-toggle': 'dropdown'} %>
              <ul class="dropdown-menu" aria-labelledby="helpDropdown">
                <li>
                  <%= read_discussions_link(@exercise) %>
                </li>
                <li>
                  <%= render_community_link %>
                </li>
                <li>
                  <%= report_bug_link(assignment) %>
                </li>
              </ul>
            </div>
          </div>
        <% end %>
      <% end %>
    <% end %>
    <%= solution_download_link assignment %>
  <% end %>

  <% if assignment.passed? %>
    <%= corollary_box @exercise %>
  <% end %>
<% end %>

<%= render partial: 'exercise_solutions/results_button', locals: {assignment: assignment} %>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mumuki-laboratory-9.0.6 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.0.5 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.0.4 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.0.3 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.0.2 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.0.1 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.0.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-8.6.1 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-8.6.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-8.5.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-8.4.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-8.3.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-8.2.1 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-8.2.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-8.1.3 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-8.1.2 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-8.1.1 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-8.1.0 app/views/exercise_solutions/_results.html.erb