<%
  post_types_views = {
    'Question' => 'posts/list',
    'Answer' => 'posts/list',
    'PolicyDoc' => 'posts/document',
    'HelpDoc' => 'posts/document',
    'Article' => 'posts/article_list'
  }
%>
<% show_type_tag ||= false %>
<% show_category_tag ||= false %>
<%= render post_types_views[post.post_type.name], post: post, show_type_tag: show_type_tag,
           show_category_tag: show_category_tag %>