Sha256: 31354b83e3a05b9d222d4289e8e93bc34af2b13ea7c6735ead72f02ee7b13e1e

Contents?: true

Size: 1.73 KB

Versions: 6

Compression:

Stored size: 1.73 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| %>
    <% if show_content_element? %>
      <div class="actions">
        <a href="<%= lesson_path(lesson) %>" class="btn btn-complementary">
          <%= t book_practice_key_for(current_user) %>
        </a>
      </div>
    <% else %>
      <br>
    <% end %>
  <% end %>

  <% if show_content?(@book) %>
    <h2><%= t(:chapters) %></h2>
  <% end %>

  <% @book.chapter_visibilities_in(current_workspace).each do |it, enabled| %>

    <% next unless show_content?(it.topic) %>

    <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><%= link_to_path_element it, mode: :plain %></h3>
        <div class="fs-7">
          <%= exam_information_for(current_user, it) %>
        </div>
        <div class="text-box">
          <%= it.guide.description_teaser_html %>
        </div>
      </div>
    <% end %>
  <% end %>
</div>

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mumuki-laboratory-9.20.1 app/views/book/show.html.erb
mumuki-laboratory-9.20.0 app/views/book/show.html.erb
mumuki-laboratory-9.19.0 app/views/book/show.html.erb
mumuki-laboratory-9.18.1 app/views/book/show.html.erb
mumuki-laboratory-9.18.0 app/views/book/show.html.erb
mumuki-laboratory-9.17.0 app/views/book/show.html.erb