<% if (u = post.user) %>
<%= u.username %>
<%= "(#{u.name})" if (SiteSetting.display_name_on_posts && SiteSetting.enable_names? && !u.name.blank?) %>
<%
post_custom_fields = @topic_view.post_custom_fields[post.id] || {}
who_username = post_custom_fields["action_code_who"] || ""
if post.action_code
%>
<%= t("js.action_codes.#{post.action_code}", when: "", who: who_username).html_safe %>
<% end %>
<% if post.updated_at > post.created_at %>
<% else %>
<% end %>
#<%= post.post_number %>
<%= post.hidden ? t('flagging.user_must_edit').html_safe : post.cooked.html_safe %>
<%= post.like_count > 0 ? t('post.has_likes', count: post.like_count) : '' %>
<% if @topic_view.link_counts[post.id] && @topic_view.link_counts[post.id].length > 0 %>
<% @topic_view.link_counts[post.id].each_with_index do |link, i| %>
<% if link[:reflection] && link[:title].present? %>
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>
<% if @topic_view.prev_page || @topic_view.next_page %>