Sha256: 83c68a99947b3cf9f157b647d7784161245214627fc0e30e7971fc4aa36e6ffd

Contents?: true

Size: 1.84 KB

Versions: 8

Compression:

Stored size: 1.84 KB

Contents

<%= hidden_field_tag :console_endpoint, exercise_tries_path(exercise) %>
<%= hidden_field_tag :historical_queries, @assignment&.queries_with_results.to_json %>

<% if exercise.extra_visible? %>
  <ul class="nav nav-tabs" role="tablist">
    <%= console_tab %>
    <% if exercise.extra_visible? %>
      <%= extra_code_tab %>
    <% end %>
  </ul>
<% end %>

<div class="tab-content">
  <div role="tabpanel" class="tab-pane mu-input-panel fade in active <%= pending_messages_filter(@assignment) %>" id="console">
    <% if @assignment&.pending_messages? %>
        <span class="pending-messages-text"> <%= t :pending_messages_explanation %>
          <a href="javascript:{}"
             onclick="mumuki.Chat.submitMessagesForm('<%= messages_url(exercise) %>', '<%= read_messages_path(exercise) %>')"
             class="<%= hidden_pending(@assignment) %>"
             data-waiting="<%= t(:sending_solution) %>">
            <%= t :get_messages %>
          </a>
        </span>
    <% end %>
    <div class="console">
    </div>
    <div class="mu-overlapped">
      <a class="console-reset submission-reset"><%= restart_icon %></a>
    </div>
   </div>
  <div role="tabpanel" class="tab-pane mu-input-panel fade" id="visible-extra">
    <%= exercise.extra_preview_html(current_user) %>
  </div>
  <div role="tabpanel" class="tab-pane mu-input-panel fade" id="messages">
    <%= render partial: 'layouts/messages', locals: {messages: @assignment.messages} if @assignment %>
  </div>
</div>

<% content_for :submission_results do %>
  <% if current_user? %>
    <div class="row">
      <div class="col-md-12 submission-results">
        <% if @assignment&.passed?  %>
          <%= render partial: 'exercise_solutions/results',
                     locals: {assignment: @assignment, guide_finished_by_solution: false} %>
        <% end %>
      </div>
    </div>
  <% end %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mumuki-laboratory-5.8.3 app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb
mumuki-laboratory-5.8.1 app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb
mumuki-laboratory-5.8.0 app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb
mumuki-laboratory-5.7.0 app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb
mumuki-laboratory-5.6.3 app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb
mumuki-laboratory-5.6.2 app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb
mumuki-laboratory-5.6.1 app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb
mumuki-laboratory-5.6.0 app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb