From 5cfc24e5dd2f537defdc8a633501b08efbf1a377 Mon Sep 17 00:00:00 2001 From: alanlong9278 <547533434@qq.com> Date: Sun, 7 Jun 2015 23:31:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E6=A8=A1=E5=9D=97=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E7=9A=84=E8=AE=BE=E7=BD=AE=EF=BC=8C=EF=BC=8C=20?= =?UTF-8?q?=E5=85=B7=E4=BD=93=E8=AF=BE=E7=A8=8B=E7=9A=84=EF=BC=8C=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E9=80=9A=E7=9F=A5=EF=BC=8C=E8=AF=BE=E7=A8=8B=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=EF=BC=8C=E8=B5=84=E6=BA=90=E5=BA=93=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E7=95=99=E8=A8=80=E6=A8=A1=E5=9D=97=E7=9A=84=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E3=80=82=20Signed-off-by:=20alanlong9278=20= =?UTF-8?q?547533434@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/_courses_jours.html.erb | 5 ++++- app/views/files/_course_file.html.erb | 15 +++++++++------ app/views/news/_course_news.html.erb | 3 +++ 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/app/views/courses/_courses_jours.html.erb b/app/views/courses/_courses_jours.html.erb index adbbf4780..6d7fbf3dc 100644 --- a/app/views/courses/_courses_jours.html.erb +++ b/app/views/courses/_courses_jours.html.erb @@ -1,4 +1,5 @@ <%= javascript_include_tag "/assets/kindeditor/kindeditor" %> +<% cache [:courses_jours, @course] do%>
<%= l(:label_no_data) %>
<% else %> + <% cache [:course_news, @newss.max().created_at] do%> <% @newss.each do |news| %>