Sha256: 7d781a41366c6a794f05ffaeffbe9a4db775bc1236a2c7a06666ec0b8203db6a

Contents?: true

Size: 1.5 KB

Versions: 40

Compression:

Stored size: 1.5 KB

Contents

<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><%= raw t :powered_by_mumuki %></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(:content) %></h2>

  <% @book.chapters.each do |it| %>
    <div class="chapter">
      <h3><%= t(:chapter_number, number: 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>

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
mumuki-laboratory-6.6.1 app/views/book/show.html.erb
mumuki-laboratory-6.6.0 app/views/book/show.html.erb
mumuki-laboratory-6.5.1 app/views/book/show.html.erb
mumuki-laboratory-6.5.0 app/views/book/show.html.erb
mumuki-laboratory-6.4.2 app/views/book/show.html.erb
mumuki-laboratory-6.4.1 app/views/book/show.html.erb
mumuki-laboratory-6.4.0 app/views/book/show.html.erb
mumuki-laboratory-6.2.0 app/views/book/show.html.erb
mumuki-laboratory-6.1.5 app/views/book/show.html.erb
mumuki-laboratory-6.0.4 app/views/book/show.html.erb
mumuki-laboratory-6.1.4 app/views/book/show.html.erb
mumuki-laboratory-6.1.3 app/views/book/show.html.erb
mumuki-laboratory-6.0.3 app/views/book/show.html.erb
mumuki-laboratory-6.1.2 app/views/book/show.html.erb
mumuki-laboratory-6.1.1 app/views/book/show.html.erb
mumuki-laboratory-6.1.0 app/views/book/show.html.erb
mumuki-laboratory-6.0.2 app/views/book/show.html.erb
mumuki-laboratory-6.0.1 app/views/book/show.html.erb
mumuki-laboratory-6.0.0 app/views/book/show.html.erb
mumuki-laboratory-5.13.0 app/views/book/show.html.erb