<li>	
	<div class="panel">
		<%= link_to post_path(post) do %>
			<h6 class="text-center"><strong><%= truncate post.title, length: 40 %></strong></h6>
		<% end %>
		<small class="author">Posted <%= time_ago_in_words(post.created_at) %> ago</small>
		<%= link_to post_path(post) do %>
			<%= image_tag post.image.url(:medium) %>
		<% end %>
		<div class="rating">
			<%= display_rating(post) %>
		</div>
	</div>
</li>

<li>	
	<div class="panel">
		<%= link_to post_path(post) do %>
			<h6 class="text-center"><strong><%= truncate post.title, length: 30 %></strong></h6>
		<% end %>
		<small class="author">Posted <%= time_ago_in_words(post.created_at) %> ago</small>
		<%= link_to post_path(post) do %>
			<%= image_tag post.image.url(:medium) %>
		<% end %>
		<div class="rating">
			<%= display_rating(post) %>
		</div>
	</div>
</li>

Fix truncate length for user posts display
Fix truncate length for user posts display
