Sha256: e807d8686c42b19f3ecf5ccd8ea130b2a44c290f3db819fec74c293da982c827

Contents?: true

Size: 1.48 KB

Versions: 23

Compression:

Stored size: 1.48 KB

Contents

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

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

  <% @book.next_lesson_for(current_user).try do |lesson| %>
    <div class="actions">
      <a href="<%= lesson_path(lesson) %>" class="btn btn-complementary">
        <%= 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

23 entries across 23 versions & 1 rubygems

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