<% if !post.group_post_images.blank? %>

<% else %>

<% end %>
<% content = strip_tags post.content %>
<%= content[0..250] %>
<%= "..." if content.length > 350 %>
<%
user = User.find(post.author) rescue nil
if !user.nil?
author = (user.member_profile.name == nil ? user.user_name : user.member_profile.name rescue "")
%>
<%= author %>
<% end %>
<% date = DateTime.parse(post.created_at.to_s).strftime("%d %B %H:%M") %>
<%= date %>