welcome index obj.includes, routes add school logo

This commit is contained in:
yanxd 2014-06-13 16:37:38 +08:00
parent 07e4d40d44
commit 3fd7104448
2 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,7 @@
<% end %>
<div class="welcome-box-list-new memo_activity">
<% topics = find_new_forum_topics(7) %>
<% topics.each do |topic|%>
<% topics.includes(:forum, :last_reply, :author).each do |topic|%>
<% cache "welcome_index_memosActivity_ul_topic_#{topic.id}_li" do %>
<li class="message-brief-intro">
<div class='memo_title text_nowrap'>

View File

@ -671,6 +671,7 @@ RedmineApp::Application.routes.draw do
get 'school/search_school/', :to => 'school#search_school'
post 'school/upload', :to => 'school#upload'
get 'school/upload_logo', :to => 'school#upload_logo'
######added by nie
match 'tags/show_projects_tags',:to => 'tags#show_projects_tags'