+ <% cache("activities") do %>
<%activities = find_all_activities%>
<% activities.each do |event| %>
+ <% cache event do %>
<%= image_tag url_to_avatar(event.event_author), :class => "avatar-3" %>
@@ -127,7 +132,7 @@
<%= l(:field_updated_on) %>
- <%= time_tag_welcome event.event_datetime %>前
+ <%= format_time event.event_datetime %>
@@ -136,7 +141,9 @@
+ <% end %>
<% end %>
+ <% end %>
@@ -157,9 +164,10 @@
+ <% cache("forums") do %>
<% topics = find_new_forum_topics(6) %>
<% topics.includes(:forum, :last_reply, :author).each do |topic|%>
-
+ <% cache topic do %>
<%= link_to '['+topic.forum.name + ']',forum_path(topic.forum),:class => 'memo_Bar_title' %>
@@ -167,7 +175,9 @@
- <%= "#{l(:label_updated_time, value: time_tag_welcome(topic_last_time topic))}".html_safe %>
+ <%#= "#{l(:field_updated_on, value: format_time(topic_last_time topic))}" %>
+ <%= l(:field_updated_on) %>
+ <%= format_time topic_last_time topic %>
<%= l(:label_question_sponsor)%>:
@@ -185,8 +195,9 @@
-
- <% end %>
+ <%end %>
+ <% end %>
+ <% end %>
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 9d3cbf244..765fda433 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -10,8 +10,8 @@ RedmineApp::Application.configure do
# Show full error reports and disable caching
config.consider_all_requests_local = true
- config.action_controller.perform_caching = false
-
+ config.action_controller.perform_caching = true
+ config.cache_store = :file_store, "#{Rails.root }/public/tmp/"
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
diff --git a/config/environments/production.rb b/config/environments/production.rb
index ab4cd4011..8a2847731 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -18,7 +18,7 @@ RedmineApp::Application.configure do
# Full error reports are disabled and caching is turned on
config.action_controller.perform_caching = true
-
+ config.cache_store = :file_store, "#{Rails.root }/public/tmp/"
# Enable serving of images, stylesheets, and javascripts from an asset server
# config.action_controller.asset_host = "http://assets.example.com"
diff --git a/lib/plugins/acts_as_event/lib/acts_as_event.rb b/lib/plugins/acts_as_event/lib/acts_as_event.rb
index e323c2b3e..42673cde7 100644
--- a/lib/plugins/acts_as_event/lib/acts_as_event.rb
+++ b/lib/plugins/acts_as_event/lib/acts_as_event.rb
@@ -43,6 +43,7 @@ module Redmine
base.extend ClassMethods
end
+
%w(datetime title description author type).each do |attr|
src = <<-END_SRC
def event_#{attr}
diff --git a/test/unit/helpers/expire_helper_test.rb b/test/unit/helpers/expire_helper_test.rb
new file mode 100644
index 000000000..318e451cc
--- /dev/null
+++ b/test/unit/helpers/expire_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class ExpireHelperTest < ActionView::TestCase
+end
diff --git a/tmp/plugins/README b/tmp/plugins/README
deleted file mode 100644
index edef25679..000000000
--- a/tmp/plugins/README
+++ /dev/null
@@ -1 +0,0 @@
-Put your Redmine plugins here.