Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
now using truncate_html so links are displayed properly in petition i…
Browse files Browse the repository at this point in the history
…ndex
  • Loading branch information
Jim Arnold committed Jun 4, 2012
1 parent 7dca3b8 commit e1211ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Expand Up @@ -49,7 +49,6 @@ group :test, :development do
gem "faker", "~> 1.0"
gem "autotest"
gem "selenium-webdriver"
gem 'nokogiri'
end

gem 'simplecov', :require => false, :group => :test
Expand All @@ -75,3 +74,5 @@ gem 'rspec'
gem 'sanitize'
gem 'rinku', :require => 'rails_rinku'
gem "flot-rails"
gem 'nokogiri'
gem "truncate_html"
2 changes: 2 additions & 0 deletions Gemfile.lock
Expand Up @@ -204,6 +204,7 @@ GEM
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
truncate_html (0.5.5)
tzinfo (0.3.33)
uglifier (1.2.4)
execjs (>= 0.3.0)
Expand Down Expand Up @@ -256,5 +257,6 @@ DEPENDENCIES
selenium-webdriver
simple_form
simplecov
truncate_html
uglifier (>= 1.0.3)
unicorn
2 changes: 1 addition & 1 deletion app/views/petitions/index.html.haml
Expand Up @@ -7,7 +7,7 @@
.about_petition
= link_to(petition.title, petition, :class => 'title')
.description
= truncate(strip_tags_except_links(petition.description), :length => 180, :omission => '...')
= truncate_html(strip_tags_except_links(petition.description), :length => 180, :omission => '...')
- if can :feature_petition
.feature
- if petition.to_send == true
Expand Down

0 comments on commit e1211ca

Please sign in to comment.