diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 8b9e469f0..571eb0b81 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1400,6 +1400,6 @@ module ApplicationHelper #end #author : nyan def stringCut240(str) - (str.length > 240) ? (str[0,240]<<"\n......") : str + (str.length > 240) ? (str[0,240]<<"......") : str end end diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb index 903ad70ff..130d343bc 100644 --- a/app/views/projects/show.html.erb +++ b/app/views/projects/show.html.erb @@ -23,7 +23,7 @@
- <%= textilizable( stringCut240(e.event_description) ) %> + <%= textilizable( truncate(e.event_description, length: 240 ) %>