Sha256: e9c2ee50cc8c46e0186aa897d3802e7096f9cb00196abb98f61af3bf48b72710

Contents?: true

Size: 1.65 KB

Versions: 9

Compression:

Stored size: 1.65 KB

Contents

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

<div class="col-md-offset-2 col-md-8">
  <div class="book-header <%= current_user? ? '' : 'logged' %>">
    <h1>ム mumuki<%= Organization.current.title_suffix %></h1>

    <img src="<%= Organization.current.banner_url %>" alt="<%= Organization.current.name %> - Mumuki">
    <h2><%= @book.name %></h2>

    <% unless Organization.current.central? %>
      <h3>
        <small><%= Organization.current.description %></small>
        <br>
        <small><%= t :powered_by_mumuki_html %></small>
      </h3>
    <% end %>
  </div>

  <div class="text-box">
    <%= @book.description_html %>
  </div>

  <% @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.chapters.each do |it| %>
    <div class="chapter">
      <h3><%= it.number %>. <%= link_to_path_element it, mode: :plain %></h3>

      <div class="text-box">
        <%= it.description_teaser_html %>
      </div>
    </div>
  <% end %>
  <% if current_user? && @exams.present? %>
    <h2><%= t(:exams) %></h2>
    <% @exams.each_with_index do |it, index| %>
      <div class="chapter">
        <h3> <%= t(:exam_number, number: index) %> <%= 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

9 entries across 9 versions & 1 rubygems

Version Path
mumuki-laboratory-7.5.2 app/views/book/show.html.erb
mumuki-laboratory-7.5.1 app/views/book/show.html.erb
mumuki-laboratory-7.5.0 app/views/book/show.html.erb
mumuki-laboratory-7.4.2 app/views/book/show.html.erb
mumuki-laboratory-7.4.1 app/views/book/show.html.erb
mumuki-laboratory-7.4.0 app/views/book/show.html.erb
mumuki-laboratory-7.3.1 app/views/book/show.html.erb
mumuki-laboratory-7.3.0 app/views/book/show.html.erb
mumuki-laboratory-7.2.0 app/views/book/show.html.erb