|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
<% if @libraries.present? %>
|
|
|
|
|
<% @libraries.each do |library| %>
|
|
|
|
|
<li class="library_list_item">
|
|
|
|
|
<% image_url = library.cover.present? ? named_attachment_path(library.cover.id, library.cover.filename) : 'educoder/library-default-cover.png' %>
|
|
|
|
|
<% image_url = library.cover.present? ? download_attachment_path(library.cover.id) : 'educoder/library-default-cover.png' %>
|
|
|
|
|
<%= image_tag(image_url, width: 120, height: 90, class: 'mr15 mt3 radius4') %>
|
|
|
|
|
<div class="flex1">
|
|
|
|
|
<p class="clearfix mb15 lineh-40 mt10">
|
|
|
|
|