Skip to content
Snippets Groups Projects
Commit c2018016 authored by Matheus Agio Nerone's avatar Matheus Agio Nerone
Browse files

now its possible to like a learning object inside the show page

parent 4380bc1b
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@
</div>
<div class="pull-right" style="padding-right:122px">
<span class="glyphicon glyphicon-eye-open"><%= @learning_object.views %>&nbsp;</span>
<span class="glyphicon glyphicon-star"><%= @learning_object.likes %>&nbsp;</span>
<span class="glyphicon glyphicon-star votes-count" data-id="<%= @learning_object.id %>" data-toggle="tooltip" data-placement="bottom" title="Curtidas"><%= @learning_object.likes %></span>&nbsp;
</div>
<br/><br/>
<h2 class="title"><%= @learning_object.name %></h2>
......@@ -61,8 +61,10 @@
<div class="rating-panel">
<div class="actions">
<div class="col-md-3 action">
<%= image_tag "icons/Curtir_01.png", alt: "Curtir" %>
<h6>curtir objeto</h6>
<%= link_to like_learning_object_path(id: @learning_object.id), class: 'vote',method: :post, remote: true do %>
<%= image_tag "icons/Curtir_01.png", alt: "Curtir" %>
<h6>curtir objeto</h6>
<% end %>
</div>
<div class="col-md-3 action">
<a href="<%= @learning_object.get_retrievelink %>">
......
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