diff --git a/app/assets/stylesheets/specific/posts.css.scss b/app/assets/stylesheets/specific/posts.css.scss index 1b5fc5dc1..9da3d947a 100644 --- a/app/assets/stylesheets/specific/posts.css.scss +++ b/app/assets/stylesheets/specific/posts.css.scss @@ -171,13 +171,13 @@ div#c-explore-posts { div#c-post-versions { div#a-index { - ins { + ins, ins a { color: green; text-decoration: none; margin-right: 0.5em; } - del { + del, del a { color: red; text-decoration: line-through; margin-right: 0.5em; diff --git a/app/helpers/post_versions_helper.rb b/app/helpers/post_versions_helper.rb index 776c528aa..447f1b490 100644 --- a/app/helpers/post_versions_helper.rb +++ b/app/helpers/post_versions_helper.rb @@ -3,13 +3,13 @@ module PostVersionsHelper diff = post_version.diff(post_version.previous) html = [] diff[:added_tags].each do |tag| - html << '' + tag + '' + html << '' + link_to(tag, posts_path(:tags => tag)) + '' end diff[:removed_tags].each do |tag| - html << '' + tag + '' + html << '' + link_to(tag, posts_path(:tags => tag)) + '' end diff[:unchanged_tags].each do |tag| - html << '' + tag + '' unless tag =~ /^(?:rating|source):/ + html << '' + link_to(tag, posts_path(:tags => tag)) + '' unless tag =~ /^(?:rating|source):/ end return html.join(" ").html_safe end diff --git a/app/views/post_versions/index.html.erb b/app/views/post_versions/index.html.erb index 176c8dfa6..6e1542dd1 100644 --- a/app/views/post_versions/index.html.erb +++ b/app/views/post_versions/index.html.erb @@ -5,7 +5,7 @@ <% if @post_versions.empty? %> <%= render "post_sets/blank" %> <% else %> - <%= render"listing", :post_versions => @post_versions %> + <%= render "listing", :post_versions => @post_versions %> <% end %>