Sha256: 8c0d33297459e5671015849c51e9104dcab259616cb6cd73e01c58b1e61afa18

Contents?: true

Size: 1.27 KB

Versions: 23

Compression:

Stored size: 1.27 KB

Contents

<%= render_runner_assets @guide.language, :layout %>

<%= render partial: 'layouts/authoring', locals: {guide: @guide} %>

<% if subject.timed? && @stats.started? && !current_user.teacher? %>
  <%= render partial: 'layouts/timer', locals: {end_time: subject.real_end_time(current_user)} %>
<% end %>

<%= yield if block_given? %>

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

<%= render partial: 'layouts/progress_listing', locals: { guide: @guide } %>

<% if @stats&.done? %>
  <div class="text-box">
    <%= corollary_box @guide, @guide.sources.present? %>
  </div>
<% end %>

<% if @guide.sources.present? %>
  <div class="text-box <%= last_box_class !@stats&.done? %>">
    <h3><%= t :sources %></h3>
    <%= @guide.sources_html %>
  </div>
<% end %>

<% if !@stats.try(:done?) && @next_exercise %>
  <div class="text-box">
    <div class="actions">
      <%= link_to t(lesson_practice_key_for(@stats)), exercise_path(@next_exercise), class: 'btn btn-complementary' %>
    </div>
  </div>
<% end %>

<% if @stats&.done? %>
  <div class="text-box">
    <div class="actions">
      <%= next_lesson_button @guide %>
    </div>
  </div>
<% end %>

<%= render partial: 'layouts/progress', locals: { content: @guide } %>

Version data entries

23 entries across 23 versions & 1 rubygems

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