diff --git a/app/assets/stylesheets/specific/comments.css.scss b/app/assets/stylesheets/specific/comments.css.scss index 90a59d3e1..b49234f33 100644 --- a/app/assets/stylesheets/specific/comments.css.scss +++ b/app/assets/stylesheets/specific/comments.css.scss @@ -5,9 +5,10 @@ div.comments-for-post { margin: 1em 0; } - .info { + p.info { color: #AAA; font-style: italic; + font-size: 80%; } div.list-of-comments { diff --git a/app/assets/stylesheets/specific/forum.css.scss b/app/assets/stylesheets/specific/forum.css.scss index a1ed9162f..9c9461b25 100644 --- a/app/assets/stylesheets/specific/forum.css.scss +++ b/app/assets/stylesheets/specific/forum.css.scss @@ -1,4 +1,10 @@ div.list-of-forum-posts { + p.info { + color: #AAA; + font-style: italic; + font-size: 80%; + } + article { margin-bottom: 3em; diff --git a/app/models/forum_post.rb b/app/models/forum_post.rb index d31eda694..4ce71fb67 100644 --- a/app/models/forum_post.rb +++ b/app/models/forum_post.rb @@ -109,6 +109,10 @@ class ForumPost < ActiveRecord::Base def creator_name User.id_to_name(creator_id) end + + def updater_name + User.id_to_name(updater_id) + end def quoted_response stripped_body = body.gsub(/\[quote\](?:.|\n|\r)+?\[\/quote\][\n\r]*/m, "") diff --git a/app/views/comments/partials/show/_comment.html.erb b/app/views/comments/partials/show/_comment.html.erb index 039dfcf45..6f1a3f0e5 100644 --- a/app/views/comments/partials/show/_comment.html.erb +++ b/app/views/comments/partials/show/_comment.html.erb @@ -10,7 +10,7 @@ <%= format_text(comment.body) %> <% if comment.updater_id.present? && (comment.updater_id != comment.creator_id || comment.created_at != comment.updated_at) %> -
Updated by <%= link_to comment.updater_name, user_path(comment.updater_id) %> <%= time_ago_in_words_tagged(comment.updated_at) %>.
+Updated by <%= link_to comment.updater_name, user_path(comment.updater_id) %> <%= time_ago_in_words_tagged(comment.updated_at) %>
<% end %>