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

fix bookmarks display

parent c59c09f3
No related branches found
No related tags found
No related merge requests found
<%#= link_to collection, do %>
<%= image_tag 'icons/collection', width: 24 %>
Favoritos
<%# end %>
\ No newline at end of file
<% bookmarks.owner.name = "" %>
<%= render 'collections/collection', collection: bookmarks %>
......@@ -4,7 +4,7 @@
<%= image_tag 'icons/collection', width: 210,height:140 %>
</div>
<div class="panel-body">
<h4 class="media-heading"><%= collection.name %></h4>
<h4 class="media-heading"><%= collection.name unless collection.name == "Bookmarks" %><%= "Favoritos" if collection.name == "Bookmarks" %></h4>
<!-- <span class="glyphicon glyphicon-eye-open">200&nbsp;</span>
<span class="glyphicon glyphicon-star">4,5&nbsp;</span> -->
<span><a><%= 'Por '+ collection.owner.name unless collection.owner.name.blank? %></a></span>
......
......@@ -15,7 +15,7 @@
<div class="navbar-header">
<%= image_tag image_path("icons/collection.png"), class: "logo-image", size: "90x66" %>
<ul class="nav navbar-nav navbar-right collection-header" style="margin-left: 30px;">
<li><h2><%= @collection.name %></h2></li>
<li><h2><%= (@collection.class != Bookmarks) ? @collection.name : "Favoritos" %></h2></li>
<li>
<%= image_tag image_path("icons/square.png"), class: "logo-image", size: "20x20" %>
<%= collection_length @collection %>
......
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