Skip to content

Commit

Permalink
9 Erase Description if it equal title
Browse files Browse the repository at this point in the history
  • Loading branch information
id774 committed Jun 21, 2012
1 parent b9c6e57 commit 0839058
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/blogs/index.html.haml
Expand Up @@ -25,7 +25,8 @@
%td
= blog.title unless blog.title.nil?
%td
= cutoff_by_char(blog.description, 300) unless blog.description.nil?
- unless blog.description.nil? || blog.title == blog.description
= cutoff_by_char(blog.description, 300)
%td
= link_to blog.link, blog.link unless blog.link.nil?

Expand Down

0 comments on commit 0839058

Please sign in to comment.