timothyandrew/blink

View on GitHub
app/views/lesson_plan_items/show.html.erb

Summary

Maintainability
Test Coverage
<% breadcrumb :lesson_plan_item, @lesson_plan, lesson_plan_item %>
<% title "Lesson Plan Item" %>

<h1><%= lesson_plan_item.display_title %></h1>
<div class="student-actions pull-right">
  <%= link_to "Edit", edit_lesson_plan_item_path(@lesson_plan, lesson_plan_item), class: "btn btn-primary" %>
  <%= link_to "Save As", new_lesson_plan_item_path(@lesson_plan, duplicate_from: @lesson_plan_item.id), class: "btn btn-info" %>
  <%= link_to "Delete", lesson_plan_item_path(@lesson_plan, lesson_plan_item), method: :delete, class: "btn btn-danger", data: {confirm: "Are you sure?"} %>
</div>


<h2 class="new-goal-subheader lesson-plan-show-subheader">
  <span><%= lesson_plan_item.display_subtitle %></span>
</h2>

<% if lesson_plan_item.elc? %>
  <%= render partial: "elc_show" %>
<% else %>
  <%= render partial: "regular_show" %>
<% end %>