<%= link_to entity, class: "#{entity.class.text_color}" do %>
<%= entity.class.icon %>
<%= entity.name %>
<% end %>
Last edited <%= time_ago_in_words entity.updated_at %> ago
<%= attribute.attribute_field.label %>:
<%=
ContentFormatterService.show(
text: truncate(attribute.value, length: 180, separator: ' '),
viewing_user: current_user
).gsub(
/#{@query}/i,
"#{@query}".html_safe
).gsub("
", ' ').gsub("
", ' ').html_safe
%>
<%= link_to polymorphic_path(entity.page_type.downcase, id: entity.id), class: 'black-text' do %>
<%= entity.class.icon %> View
<% end %>
<%= link_to edit_polymorphic_path(entity.page_type.downcase, id: entity.id), class: 'black-text' do %>
edit Edit
<% end %>
<% entity_universe = entity.try(:universe) %>
<% if entity_universe %>
<%= link_to entity_universe, class: "black-text right", style: 'padding: 0 10px' do %>
<%= Universe.icon %>
<%= entity_universe.name %>
<% end %>
<% end %>