Reativando o cache nas folhas de estilo

This commit is contained in:
2008-03-06 18:56:00 -03:00
parent 9cd00247f9
commit c206a678bd
20 changed files with 153 additions and 157 deletions

View File

@@ -1,31 +1,31 @@
= javascript_include_tag 'news'
- cache do
-# cache(course_news_index_path(@course.id)) do
.cmd
= action_icon 'add', 'Adicionar', new_course_news_url
.cmd
= action_icon 'add', 'Adicionar', new_course_news_url
%h4.title= h(@course.full_name)
%h1.title Notícias
%h4.title= h(@course.full_name)
%h1.title Notícias
= auto_discovery_link_tag :rss, formatted_course_news_index_url(@course, :rss)
= auto_discovery_link_tag :rss, formatted_course_news_index_url(@course, :rss)
.box.div_news
- if !@course.news.empty?
%table
- @course.news.each do |n|
%tr[n]
%td.top.aright{:width => '1%'}
= n.timestamp.strftime("%d de %B")
%td
.title= link_to h(n.title), course_news_url(@course, n)
.description{:style => (n.id == params[:id].to_i ? '' : 'display: none')}
.cmd
= action_icon 'edit', 'Editar', edit_course_news_url(@course, n)
= action_icon 'trash', 'Excluir', course_news_url(@course, n), :confirm => 'Tem certeza que deseja excluir?', :method => :delete
= h(n.body)
= "Sem descrição" if n.body.empty?
- else
.box
%ul
%li.no_itens Nenhuma notícia
.box.div_news
- if !@course.news.empty?
%table
- @course.news.each do |n|
%tr[n]
%td.top.aright{:width => '1%'}
= n.timestamp.strftime("%d de %B")
%td
.title= link_to h(n.title), course_news_url(@course, n)
.description{:style => (n.id == params[:id].to_i ? '' : 'display: none')}
.cmd
= action_icon 'edit', 'Editar', edit_course_news_url(@course, n)
= action_icon 'trash', 'Excluir', course_news_url(@course, n), :confirm => 'Tem certeza que deseja excluir?', :method => :delete
= h(n.body)
= "Sem descrição" if n.body.empty?
- else
.box
%ul
%li.no_itens Nenhuma notícia