Skip to content
Snippets Groups Projects
Commit ea7fdd13 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

add default image to learning object

parent f98dc3f2
No related branches found
No related tags found
No related merge requests found
app/assets/images/learning-object-preview.png

3.62 KiB

......@@ -13,8 +13,8 @@
}
.learning-object-thumbnail {
width: 250px;
height: 150px;
min-width: 250px;
height: 141px;
position: relative;
.learning-object-actions {
......@@ -23,5 +23,4 @@
right: 5px;
}
}
}
\ No newline at end of file
}
<% link = learning_object_path(id: learning_object.id) %>
<div class="learning-object-horizontal">
<div class="media">
<div class="media-left media-middle">
<div class="learning-object-thumbnail">
<a href="#">
<img src="http://dummyimage.com/250x150/363336/fff" alt='dummy image'>
<a href="<%= link %>">
<% if learning_object.thumbnail == "thumbnai" %>
<%= image_tag('learning-object-preview.png') %>
<% else %>
<img src="<%= learning_object.thumbnail %>" alt="Prévia do objeto">
<% end %>
<%= render 'learning_objects/actions_buttons' %>
</a>
<%= render 'learning_objects/actions_buttons' %>
</div>
</div>
<div class="media-body">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment