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

@@ -22,7 +22,7 @@
= link_to(h(n.course.full_name), course_url(n.course)) + " ›"
= link_to(h(n.title), course_news_url(n.course, n))
- unless n.body.empty?
%p= h(n.body)
%p= truncate(n.body, 300)
.box
.cmd

View File

@@ -8,7 +8,7 @@ xml.rss(:version=>"2.0") do
for news_item in @news
xml.item do
xml.title(news_item.course.short_name + ": " + news_item.title)
xml.description(news_item.body)
xml.description(formatted(news_item.body))
xml.pubDate(news_item.timestamp.rfc2822)
xml.link(course_news_url(news_item.course, news_item))
xml.guid(course_news_url(news_item.course, news_item))