diff --git a/app/views/collections/show.html.erb b/app/views/collections/show.html.erb index 3e6359ec6c75b3f5a19ffbaf4979325c0f9a7dfa..a82a07f837d8e1d8f3ad31160e6da9281028ad54 100644 --- a/app/views/collections/show.html.erb +++ b/app/views/collections/show.html.erb @@ -3,17 +3,16 @@ <div class="container-fluid"> <div class="navbar-right" style="text-align:right"> <% if @own %> - <% if @collection.class != Bookmark %> - <%= link_to '#' do %> - <%= link_to 'APAGAR', collection_path(@collection.id), method: :delete, class: 'btn btn-danger btn-remove', style: 'margin-right: 30px', data: {confirm: 'Não será possÃvel recuperá-la, você tem certeza?'} %></span> + <% if @collection.class != Bookmark %> + <%= link_to 'APAGAR', collection_path(@collection.id), method: :delete, class: 'btn btn-danger btn-remove', style: 'margin-right: 10px', data: {confirm: 'Não será possÃvel recuperá-la, você tem certeza?'} %> + <%= link_to 'Avalie esta coleção!', new_review_path(reviewable_id: @collection.id, reviewable_type: @collection.class.name), class: 'btn btn-success', style: 'margin-right: 30px' %> + <div class="collection-privacy"> + <input type="radio" name="privacy" id="privacy_private" data-cid="<%= @collection.id %>" value="private" <%= "checked" if @collection.privacy == "private" %>> + <label for="privacy_private">Privada</label> | + <input type="radio" name="privacy" id="privacy_public" data-cid="<%= @collection.id %>" value="public" <%= "checked" if @collection.privacy == "public" %>> + <label for="privacy_public">Pública</label> + </div> <% end %> - <div class="collection-privacy"> - <input type="radio" name="privacy" id="privacy_private" data-cid="<%= @collection.id %>" value="private" <%= "checked" if @collection.privacy == "private" %>> - <label for="privacy_private">Privada</label> | - <input type="radio" name="privacy" id="privacy_public" data-cid="<%= @collection.id %>" value="public" <%= "checked" if @collection.privacy == "public" %>> - <label for="privacy_public">Pública</label> - </div> - <% end %> <% end %> </div> @@ -27,7 +26,7 @@ <li><h2><%= (@collection.class != Bookmark) ? @collection.name : "Favoritos" %></h2></li> <li> <input type="checkbox" class="count-collections-objects" data-toggle="tooltip" data-placement="bottom" title="Selecionar todos"> - <%= collection_length @collection %> + <%= collection_length @collection %> </a> </li> </ul> @@ -44,27 +43,25 @@ Salvar no <br>computador</span></a> </li> <% if user_signed_in? %> - <li class="set-align collection-button" data-action="copy" data-class="collections"> - <a href="javascript:void(0);"><span class="left-edge1"><%= image_tag image_path("icons/Copiar_Seleção.png"), class: "logo-image", size: "35x35" %></span><span style="color: white"> + <li class="set-align collection-button" data-action="copy" data-class="collections"> + <a href="javascript:void(0);"><span class="left-edge1"><%= image_tag image_path("icons/Copiar_Seleção.png"), class: "logo-image", size: "35x35" %></span><span style="color: white"> Copiar <br>para</span></a> - </li> + </li> <% end %> <% if @own %> - <li class="set-align collection-button" data-action="move" data-class="collections"> - <a href="javascript:void(0);"><span class="left-edge1"><%= image_tag image_path("icons/Mover_Seleção.png"), class: "logo-image", size: "35x35" %></span><span style="color: white"> + <li class="set-align collection-button" data-action="move" data-class="collections"> + <a href="javascript:void(0);"><span class="left-edge1"><%= image_tag image_path("icons/Mover_Seleção.png"), class: "logo-image", size: "35x35" %></span><span style="color: white"> Mover <br>para</span></a> - </li> - <li class="set-align collection-button" data-action="remove" data-class="collections"> - <a href="javascript:void(0);"><span class="left-edge1"><%= image_tag image_path("icons/Remover_da_Coleção_Seleção.png"), class: "logo-image", size: "35x35" %></span><span style="color: white"> + </li> + <li class="set-align collection-button" data-action="remove" data-class="collections"> + <a href="javascript:void(0);"><span class="left-edge1"><%= image_tag image_path("icons/Remover_da_Coleção_Seleção.png"), class: "logo-image", size: "35x35" %></span><span style="color: white"> Remover da <br>coleção</span></a> - </li> + </li> <% end %> </ul> </div> </nav> -<%= link_to 'Avalie esta coleção!', new_review_path(reviewable_id: @collection.id, reviewable_type: @collection.class.name), class: 'btn btn-success' %> - <div class="row"> <div class="learning-object-columns"> <br/>