Sha256: 75f6ce7b070226b06683646e7f44c4df5839eb776da5e069de48cab6cb993334

Contents?: true

Size: 1.5 KB

Versions: 13

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><%= 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(: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

13 entries across 13 versions & 1 rubygems

Version Path
mumuki-laboratory-7.0.4 app/views/book/show.html.erb
mumuki-laboratory-7.0.3 app/views/book/show.html.erb
mumuki-laboratory-7.0.2 app/views/book/show.html.erb
mumuki-laboratory-6.7.7 app/views/book/show.html.erb
mumuki-laboratory-6.7.6 app/views/book/show.html.erb
mumuki-laboratory-6.7.5 app/views/book/show.html.erb
mumuki-laboratory-7.0.1 app/views/book/show.html.erb
mumuki-laboratory-7.0.0 app/views/book/show.html.erb
mumuki-laboratory-6.7.4 app/views/book/show.html.erb
mumuki-laboratory-6.7.3 app/views/book/show.html.erb
mumuki-laboratory-6.7.2 app/views/book/show.html.erb
mumuki-laboratory-6.7.1 app/views/book/show.html.erb
mumuki-laboratory-6.7.0 app/views/book/show.html.erb