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

improving layout


Signed-off-by: default avatarman13 <man13@inf.ufpr.br>
parent 62938262
No related branches found
No related tags found
No related merge requests found
......@@ -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/>
......
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