diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index ca99f33dc..483dbfc02 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -52,7 +52,9 @@ <%= link_to "更多>>", { :controller => 'projects', :action => 'index', :project_type => 0, :host => Setting.project_domain}, :target => "_blank" %>
+ <% end %>
@@ -84,7 +86,9 @@

用户动态

<%= link_to "更多>>", { :controller => 'users', :action => 'index'}, :target => "_blank" %>
- <% find_all_activities.each do |event| %> + <%activities = find_all_activities%> + <% cache activities do %> + <% activities.each do |event| %>
  • <%= image_tag url_to_avatar(event.event_author), :class => "avatar-3" %> @@ -96,12 +100,14 @@
  • <% end %> + <% end %>