Title | Author | Categories | Tags | Comments | Date |
---|---|---|---|---|---|
<%= link post.post_title, to: Routes.posts_path(@conn, :edit, post) %> | <%= if !is_nil(post.author) do %> <%= post.author.display_name %> <% end %> | <%= post.categories |> Enum.map(&(&1.name)) |> Enum.join(", ") %> | <%= post.tags |> Enum.map(&(&1.name)) |> Enum.join(", ") %> | <%= post.comments |> Enum.count() %> |
<%= case post.post_status do %>
<% "publish" -> %>
<%= "Published" %>
<% "future" -> %>
<%= "Scheduled" %>
<% "draft" -> %>
<%= "Last Modified" %>
<% "pending" -> %>
<%= "Scheduled" %>
<% "private" -> %>
<%= "Published Privately" %>
<% "inherit" -> %>
<%= "Inherit" %>
<% end %>
<%= post.post_date |> Timex.format!("%F", :strftime) %>
|