A website template with lots of features, built with ruby on rails.

files.html.erb 842B

123456789101112131415161718192021222324
  1. <div class="row">
  2. <%= render 'admin_panel/sidebar_nav' %>
  3. <div class="span9">
  4. <div class="page-header">
  5. <h1><%= t "admin_panel.files" %> <%= link_to (t "admin_panel.upload_file"), new_upload_path, :class => 'btn btn-primary btn-mini' %></h1>
  6. </div>
  7. <ul class="thumbnails">
  8. <% @uploads.each do |upload| %>
  9. <li class="span3" style="">
  10. <div class="thumbnail" style="height: 250px;">
  11. <% if upload.file.content_type.start_with?('image') && upload.file.thumb.to_s != nil %>
  12. <%= image_tag upload.file.thumb.to_s %>
  13. <% else %>
  14. <img src="http://placehold.it/300x200" alt="">
  15. <% end %>
  16. <h5 style="height: 40px"><%= link_to upload.title, upload_path(upload) %></h5>
  17. <p><%= upload.description %></p>
  18. </div>
  19. </li>
  20. <% end %>
  21. </ul>
  22. </div>
  23. </div>