Sha256: bef226035cf6d63f26a1dbcd124d4aa53fc5794a75d13e576dea2bd37004a7ae

Contents?: true

Size: 1.48 KB

Versions: 14

Compression:

Stored size: 1.48 KB

Contents

<%= content_for :breadcrumbs do %>
  <%= header_breadcrumbs(link_for_organization: false) %>
<% end %>

<div class="col-md-offset-2 col-md-8">
  <%= render partial: 'book/header' %>

  <% @book.next_lesson_for(current_user).try do |lesson| %>
    <div class="actions">
      <a href="<%= lesson_path(lesson) %>" class="btn btn-success">
        <%= t book_practice_key_for(current_user) %>
      </a>
    </div>
  <% end %>

  <h2><%= t(:chapters) %></h2>

  <% @book.chapter_visibilities_in(current_workspace).each do |it, enabled| %>
    <div class="chapter-container">
      <div class="chapter <%= enabled ? '' : 'mu-locked' %>">
        <h3><%= it.number %>. <%= link_to_path_element it, mode: :plain %></h3>
        <div class="text-box" <%= 'aria-label=""' unless enabled %>>
          <%= it.description_teaser_html %>
        </div>
      </div>

      <% unless enabled  %>
        <div class="text-center mu-lock">
          <i class="fas fa-lock fa-5x"></i>
          <p><%= t :locked_content %></p>
        </div>
      <% end %>
    </div>
  <% end %>
  <% if current_user? && @exams.present? %>
    <h2><%= t(:exams) %></h2>
    <% @exams.each_with_index do |it, index| %>
      <div class="chapter">
        <h3> <%= index + 1 %>. <%= link_to_path_element it, mode: :plain %></h3>

        <div class="text-box">
          <%= it.guide.description_teaser_html %>
        </div>
      </div>
    <% end %>
  <% end %>
</div>

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mumuki-laboratory-9.0.6 app/views/book/show.html.erb
mumuki-laboratory-9.0.5 app/views/book/show.html.erb
mumuki-laboratory-9.0.4 app/views/book/show.html.erb
mumuki-laboratory-9.0.3 app/views/book/show.html.erb
mumuki-laboratory-9.0.2 app/views/book/show.html.erb
mumuki-laboratory-9.0.1 app/views/book/show.html.erb
mumuki-laboratory-9.0.0 app/views/book/show.html.erb
mumuki-laboratory-8.6.1 app/views/book/show.html.erb
mumuki-laboratory-8.6.0 app/views/book/show.html.erb
mumuki-laboratory-8.5.0 app/views/book/show.html.erb
mumuki-laboratory-8.4.0 app/views/book/show.html.erb
mumuki-laboratory-8.3.0 app/views/book/show.html.erb
mumuki-laboratory-8.2.1 app/views/book/show.html.erb
mumuki-laboratory-8.2.0 app/views/book/show.html.erb