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

add tooltip to learning object

parent accdf410
No related branches found
No related tags found
No related merge requests found
......@@ -20,3 +20,7 @@
//= require jquery.turbolinks
//= require turbolinks
//= require_tree ./application
$(document).ready(function () {
$('[data-toggle="tooltip"]').tooltip();
});
......@@ -43,6 +43,9 @@ var search = function() {
$("#search-fetch").append(data);
// add tooltip
$('[data-toggle="tooltip"]').tooltip();
searchWatchers().attachMoreResults();
});
}
......
......@@ -18,8 +18,8 @@
<% end %>
<span class="author-label">Por <%= learning_object.get_metadata_value_of("dc.contributor.author") %></span><br/>
<span class="glyphicon glyphicon-eye-open"><%= learning_object.views %></span>
<span class="glyphicon glyphicon-star votes-count" data-id="<%= learning_object.id %>"><%= learning_object.likes %></span><br>
<span class="glyphicon glyphicon-eye-open" data-toggle="tooltip" data-placement="bottom" title="Visualizações"><%= learning_object.views %></span>&nbsp;&nbsp;&nbsp;
<span class="glyphicon glyphicon-star votes-count" data-id="<%= learning_object.id %>" data-toggle="tooltip" data-placement="bottom" title="Curtidas"><%= learning_object.likes %></span><br>
<% unless learning_object.description.nil? %>
<div class="learning-object-text">
......
......@@ -10,9 +10,9 @@
</div>
<div class="panel-body">
<h4 class="media-heading"><%= learning_object_title(learning_object) %></h4>
<span class="glyphicon glyphicon-eye-open"><%= learning_object.views %></span>
<span class="glyphicon glyphicon-star votes-count" data-id="<%= learning_object.id %>"><%= learning_object.likes %></span>
<span class="glyphicon glyphicon-eye-open" data-toggle="tooltip" data-placement="bottom" title="Visualizações"><%= learning_object.views %></span>&nbsp;
<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;
<span class="author-label">Por <%= learning_object.get_metadata_value_of("dc.contributor.author") %></span>
</div>
</div>
</div>
\ No newline at end of file
</div>
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