Interface: algumas mudancas para comportar melhor textos grandes

This commit is contained in:
2008-03-12 18:54:13 -03:00
parent 5d51f929c6
commit 0016397a89
8 changed files with 10 additions and 7 deletions

View File

@@ -53,6 +53,10 @@ module ApplicationHelper
BlueCloth.new(text).to_html
end
def formatted(text)
h(text).gsub("\n", "<br/>")
end
def highlight(name)
return {:class => 'highlight'} if (flash[:highlight] == name)
end