<%= render "layouts/window", { window_title: "posts", class: "posts-window" } do %> <div class="post"> <div class="text-center"> <div class="title"> <%= post.title %> </div> <small class="created"> Published on <%= js_timestamp(post.published_at, format: "L LTS") %> <br> Written by <%= post.author.username %> </small> </div> <div class="content"> <%= post.content.html_safe %> </div> </div> <% end %>