app/views/kinney/clips/index.html.erb in kinney-0.0.3 vs app/views/kinney/clips/index.html.erb in kinney-0.1.0
- old
+ new
@@ -1,40 +1,8 @@
<% @title = t('.title') %>
<% @meta_description = t('.meta_description') %>
<%= content_for :header do %>
- <h1><%= t '.title' %></h1>
+ <h1><%= t '.title' %></h1>
<% end -%>
-<div class='row' id="insert_controls"></div>
-
-<div class="row" id="clip_profiles">
- <div class="span12">
- <ul class="thumbnails sortable_thumbs">
- <% @people.each do |person| %>
- <li class="span4 sortable_thumb">
- <div class="thumbnail">
-
- <h2><%= person.first_name %> <%= person.middle_name %> <span class="last_name"><%= person.last_name %></span><%= ', ' + person.name_suffix if !person.name_suffix.blank? %> <span class="grad_class"><%= "(#{person.graduating_class})" if !person.graduating_class.blank? %></span></h2>
-
- <%= link_to person.clips.first, :class => :thumbnail_video do %>
- <div class="thumbnail_image">
- <%= image_tag person.clips.first.png, :alt => person.clips.first.title %>
- </div>
- <% end -%>
-
-
- <ul class="nav nav-pills nav-stacked">
- <% person.clips.each do |clip| %>
- <li><%= link_to clip, :rel => :tooltip, :'data-original-title' => clip.description do %>
- <i class="icon-play"></i><%= clip.title %> <%= "(#{clip.duration_pretty})" if !clip.duration.blank? %>
- <% end -%>
- </li>
- <% end -%>
- </ul>
- </div>
- </li>
- <% end -%>
- </ul>
- </div>
-</div>
-
+<%= render partial: clips_index_partial %>