|
|
|
@ -623,7 +623,8 @@ class Project < ActiveRecord::Base
|
|
|
|
|
|
|
|
|
|
# Returns a short description of the projects (first lines)
|
|
|
|
|
def short_description(length = 255)
|
|
|
|
|
description.gsub(/^(.{#{length}}[^\n\r]*).*$/m, '\1...').strip if description
|
|
|
|
|
#description.gsub(/^(.{#{length}}[^\n\r]*).*$/m, '\1...').strip if description
|
|
|
|
|
description.gsub(/<\/?.*?>/,"").html_safe if description
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def css_classes
|
|
|
|
|