From 19c6c8932f283ba215f32ac12dcdf4998d167129 Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 6 Jan 2012 18:27:46 -0500 Subject: [PATCH] fixes #199 --- app/assets/stylesheets/specific/posts.css.scss | 4 ++-- app/helpers/post_versions_helper.rb | 6 +++--- app/views/post_versions/index.html.erb | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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 %>