Interface: algumas mudancas para comportar melhor textos grandes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user