Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: app/models/article.rb
- ===================================================================
- --- app/models/article.rb (revision 1241)
- +++ app/models/article.rb (working copy)
- @@ -104,6 +104,7 @@
- 'title' => title,
- 'permalink' => permalink,
- 'url' => full_permalink,
- + 'has_excerpt' => !excerpt.blank?,
- 'body' => body_for_mode(mode),
- 'published_at' => published_at,
- 'comments_count' => comments_count,
- Index: lib/mephisto/liquid/filters.rb
- ===================================================================
- --- lib/mephisto/liquid/filters.rb (revision 1241)
- +++ lib/mephisto/liquid/filters.rb (working copy)
- @@ -12,7 +12,12 @@
- end
- def link_to_comments(article)
- - content_tag :a, pluralize(article['comments_count'], 'comment'), :href => article['url']
- + comment_text = pluralize(article['comments_count'], 'comment')
- + link_text = article['has_excerpt'] ?
- + "Read more... (#{comment_text})" :
- + comment_text
- +
- + content_tag :a, link_text, :href => article['url']
- end
- def escape_html(html)
Add Comment
Please, Sign In to add comment