<%= render_runner_assets exercise.language, :layout, loads_more_assets: exercise.custom? %> <% if exercise.console? %> <%= hidden_field_tag(:stateful_console, exercise.stateful_console?) %> <%= hidden_field_tag(:prompt, exercise.prompt) %> <% end %> <%= hidden_field_tag(:exercise_language, exercise.highlight_mode) %> <%= hidden_field_tag :console_endpoint, exercise_queries_path(exercise) %>

<%= @debatable.name %>

<% if should_render_read_only_exercise_tabs?(@discussion) %>
<% if @discussion.has_submission? %>
<%= render_exercise_read_only_editor exercise, @discussion.solution %>
<%= render layout: 'exercise_solutions/contextualization_results_container', locals: {contextualization: @discussion } do %>
<%= render partial: 'exercise_solutions/contextualization_results_body', locals: {contextualization: @discussion, guide_finished_by_solution: false} %>
<% end %>
<% end %>
<%= render partial: 'exercises/exercise_assignment', locals: {exercise: exercise} %>
<%= @discussion.extra_preview_html %>
<% else %>
<%= render partial: 'exercises/exercise_assignment', locals: {exercise: exercise} %>
<% end %>