|
<div class="row">
<%= render 'admin_panel/sidebar_nav' %>
<div class="span9">
<div class="page-header">
<h1>Blog Posts <%= link_to 'Upload File', new_upload_path, :class => 'btn btn-primary btn-mini' %></h1>
</div>
<ul class="thumbnails">
<% @uploads.each do |upload| %>
<li class="span3" style="">
<div class="thumbnail">
<% if upload.file.content_type.start_with?('image') && upload.file.thumb.to_s != nil %>
<%= image_tag upload.file.thumb.to_s %>
<% else %>
<img src="http://placehold.it/300x200" alt="">
<% end %>
<h5 style="height: 40px"><%= link_to upload.title, upload_path(upload) %></h5>
<p><%= upload.description %></p>
</div>
</li>
<% end %>
</ul>
</div>
</div>
|