Skip to content
Snippets Groups Projects
Commit 019182b2 authored by Lucas Ernesto Kindinger's avatar Lucas Ernesto Kindinger
Browse files

Fixed Review Button (Fix #21)

parent d407ed6e
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,10 @@ ...@@ -5,7 +5,10 @@
<% if @own %> <% if @own %>
<% if @collection.class != Bookmark %> <% 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 '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' %>
<% if @collection.owner != current_user%>
<%= 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' %>
<% end -%>
<div class="collection-privacy"> <div class="collection-privacy">
<input type="radio" name="privacy" id="privacy_private" data-cid="<%= @collection.id %>" value="private" <%= "checked" if @collection.privacy == "private" %>> <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> | <label for="privacy_private">Privada</label> |
......
...@@ -153,7 +153,10 @@ ...@@ -153,7 +153,10 @@
</div> </div>
</div> </div>
</div> </div>
<%= link_to 'Avalie este objeto!', new_review_path(reviewable_id: @learning_object.id, reviewable_type: @learning_object.class.name), class: 'btn btn-success' %>
<% if learning_object.owner != current_user %>
<%= link_to 'Avalie este objeto!', new_review_path(reviewable_id: @learning_object.id, reviewable_type: @learning_object.class.name), class: 'btn btn-success' %>
<% end -%>
<br/><br/> <br/><br/>
<div class="row"> <div class="row">
......
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