Sha256: 3af9421203766d91a1ab56e191bb34203d4fe6e7143b95c2c657cf284883974f

Contents?: true

Size: 1.73 KB

Versions: 23

Compression:

Stored size: 1.73 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-bs-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

23 entries across 23 versions & 1 rubygems

Version Path
mumuki-laboratory-9.12.1 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.12.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.11.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.10.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.9.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.8.2 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.8.1 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.8.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.7.2 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.7.1 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.7.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.6.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.5.1 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.5.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.4.1 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.4.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.3.1 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.3.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.2.0 app/views/exercise_solutions/_results.html.erb
mumuki-laboratory-9.1.3 app/views/exercise_solutions/_results.html.erb