From 59ea1c3c2c110a3dce3452d81553712b09a2a4d3 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 3 Jan 2014 13:08:52 -0500 Subject: [PATCH] Embedded: Change bottom link to last post, show deleted posts correctly. --- app/assets/stylesheets/embed.css.scss | 4 ++++ app/views/embed/comments.html.erb | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/embed.css.scss b/app/assets/stylesheets/embed.css.scss index 19deb049b20..fe7a348bba8 100644 --- a/app/assets/stylesheets/embed.css.scss +++ b/app/assets/stylesheets/embed.css.scss @@ -4,6 +4,10 @@ article.post { border-bottom: 1px solid #ddd; + &.deleted { + background-color: #ffe5e5; + } + .post-date { float: right; color: #aaa; diff --git a/app/views/embed/comments.html.erb b/app/views/embed/comments.html.erb index 4bd293199f2..bebd9736039 100644 --- a/app/views/embed/comments.html.erb +++ b/app/views/embed/comments.html.erb @@ -12,7 +12,7 @@ <%- if @topic_view.posts.present? %> <%- @topic_view.posts.each do |post| %> -
+
<%= link_to post.created_at.strftime("%e %b %Y"), post.url, class: 'post-date', target: "_blank" %> <%- if post.reply_to_post.present? %> <%= link_to I18n.t('embed.in_reply_to', username: post.reply_to_post.username), post.reply_to_post.url, class: 'in-reply-to', target: "_blank" %> @@ -35,7 +35,7 @@ <%- end %>