<% if category.category_image %> <%= display_image(category, "category_image.image.small.url", class: "img-inline", alt: category.display_name, width: "100", height: "100", class: "p-20") %> <% else %> <% end %>
<% category_name = truncate(category.display_name, length: 20) %> <% if category.end_node? %> <%= content_tag :span, category_name, style: ";font-size:14px;" %>
<%= content_tag :span, category.display_category_type, style: "color: #ffba00;" %>
<%= display_publishable_status(category) %> <% else %> <%= link_to raw(" #{category_name}"), categories_path(parent_id: category.id, category_type: @category_type), remote: true, style: "font-weight:bold;font-size:14px;" %>
<%= content_tag :span, category.display_category_type, style: "color: #cc3f44;" %>
<%= display_publishable_status(category) %> <% end %>
<% if display_manage_links? %>
<%#= display_publishable_links(category) %> <%= link_to raw(" View Details"), category_path(category), :remote=>true, style: "color:#373e4a" %>
<% if @current_user.has_create_permission?(Dhatu::Category) %> <%= link_to raw(" Sub Category"), new_category_path(parent_id: category.try(:id),category_type: category.category_type, ft: @feature.try(:id)), class: "", remote: true, style: "color: #8dc63f" %> <% end %>
<%= display_manage_links(category, @current_user, edit_text: "Edit Category", delete_text: "Edit Category") %>
<% end %>