Improved Commit diff -> Images. Red border for removed & green for added images

This commit is contained in:
randx 2012-05-30 21:02:30 +03:00
parent b826a684c7
commit 78f4c789b3
4 changed files with 125 additions and 101 deletions

View file

@ -86,4 +86,14 @@ module CommitsHelper
end
end
end
def image_diff_class(diff)
if diff.deleted_file
"diff_image_removed"
elsif diff.new_file
"diff_image_added"
else
nil
end
end
end