Sha256: 728b1f2112de6c6998a1138c80cea91541163f65a9bd621c80b082d2670fa44c

Contents?: true

Size: 1.35 KB

Versions: 68

Compression:

Stored size: 1.35 KB

Contents

<h1>Lesson <small><%= @lesson.pretty_title %></small></h1>

<div class="btn-toolbar" role="toolbar">
	<%= link_to "Lessons", arm_lessons_path, class: "btn btn-default" %>
  <%= link_to "Edit", edit_arm_lesson_path(@arm, @lesson), class: "btn btn-default" %>
	<%= link_to "Add Slide", new_arm_lesson_lesson_slide_path(@arm, @lesson), class: "btn btn-default" %>
  <%= link_to "Add Video Slide", new_arm_lesson_lesson_slide_path(@arm, @lesson, slide: { type: "BitCore::VideoSlide" }), class: "btn btn-default" %>
  <%= link_to "Add Audio Slide", new_arm_lesson_lesson_slide_path(@arm, @lesson, slide: { type: "BitCore::AudioSlide" }), class: "btn btn-default" %>
</div>

<h3>Slides</h3>
<ol id="sortable-slides" data-update-url="<%= sort_arm_lesson_lesson_slides_url(@arm, @lesson) %>">
	<% @lesson.slides.each do |slide| %>
		<li class="slide" id="slide_<%= slide.id %>">
			<span>
				<span class="handle"><%= fa_icon("sort", class: "fa-lg") %></span>
			</span>

			<span>
				<%= link_to slide.title, arm_lesson_lesson_slide_path(@arm, @lesson, slide) %>
			</span>

			<span>
				<%= link_to "Edit", edit_arm_lesson_lesson_slide_path(@arm, @lesson, slide), class: "btn btn-default" %>
				<%= link_to "Remove", arm_lesson_lesson_slide_path(@arm, @lesson, slide), method: :delete, data: { confirm: "Are you sure?" }, class: "btn btn-danger" %>
			</span>
		</li>
	<% end %>
</ol>

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.22.8 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.22.7 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.22.6 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.22.5 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.22.4 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.22.2 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.22.1 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.22.0 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.21.2 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.21.1 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.21.0 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.20.1 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.19.9 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.19.8 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.19.7 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.19.6 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.19.5 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.19.4 app/views/think_feel_do_engine/lessons/show.html.erb
think_feel_do_engine-3.19.3 app/views/think_feel_do_engine/lessons/show.html.erb