Skip to content
Snippets Groups Projects
Commit dd2bef08 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

add collection button and helpers

parent f7d9fa59
No related branches found
No related tags found
No related merge requests found
module CollectionsHelper
##
# x objetos educacionais
def collection_length(collection)
"#{collection.learning_objects.count} objetos educacionais nessa coleção"
end
end
\ No newline at end of file
<a href="#" id="add_to_collection">Adicionar as coleções</a>
<div id="collections_list_popover" style="display: none">
<ul>
<% collections.each do |c| %>
<li><%= c.name %></li>
<% end %>
</ul>
</div>
<div id="collections_list_popover_title" style="display: none">
Adicione esse objeto a uma coleção
</div>
\ No newline at end of file
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