<%= render_runner_assets @guide.language, :layout %> <%= content_for :breadcrumbs do %> <%= breadcrumbs subject %> <% end %> <%= render partial: 'layouts/authoring', locals: {guide: @guide} %> <% if subject.timed? && subject.started?(current_user) && !current_user.teacher? %> <%= render partial: 'layouts/timer', locals: {end_time: subject.real_end_time(current_user)} %> <% end %>

<%= language_icon @guide.language %>

<%= subject.name %> <% if current_user? && should_display_medal?(@guide, Organization.current) %>
<%= content_medal_for(@guide, current_user) %>
<% end %> <%= teacher_info_button @guide%> <%= link_to_bibliotheca_guide @guide %>

<%= @guide.description_html %>
<% if !@stats.try(:done?) && @next_exercise %> <%= link_to t(lesson_practice_key_for(@stats)), exercise_path(@next_exercise), class: 'btn btn-success' %> <% end %>

<%= t :exercises %> <%= restart_guide_link(@guide) if current_user && @guide.started?(current_user) && @guide.resettable? %>

<%= render partial: 'layouts/progress_listing', locals: {exercises: @guide.exercises} %> <% if @stats&.done? %>
<%= corollary_box @guide, @guide.sources.present? %>
<% end %> <% if @guide.sources.present? %>

<%= t :sources %>

<%= @guide.sources_html %>
<% end %> <% if @stats&.done? %>
<%= next_lesson_button @guide %>
<% end %> <%= render partial: 'layouts/progress', locals: { content: @guide } %>