welcome index obj.includes, routes add school logo
This commit is contained in:
parent
07e4d40d44
commit
3fd7104448
|
@ -118,7 +118,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="welcome-box-list-new memo_activity">
|
<div class="welcome-box-list-new memo_activity">
|
||||||
<% topics = find_new_forum_topics(7) %>
|
<% 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 %>
|
<% cache "welcome_index_memosActivity_ul_topic_#{topic.id}_li" do %>
|
||||||
<li class="message-brief-intro">
|
<li class="message-brief-intro">
|
||||||
<div class='memo_title text_nowrap'>
|
<div class='memo_title text_nowrap'>
|
||||||
|
|
|
@ -671,6 +671,7 @@ RedmineApp::Application.routes.draw do
|
||||||
get 'school/search_school/', :to => 'school#search_school'
|
get 'school/search_school/', :to => 'school#search_school'
|
||||||
|
|
||||||
post 'school/upload', :to => 'school#upload'
|
post 'school/upload', :to => 'school#upload'
|
||||||
|
get 'school/upload_logo', :to => 'school#upload_logo'
|
||||||
|
|
||||||
######added by nie
|
######added by nie
|
||||||
match 'tags/show_projects_tags',:to => 'tags#show_projects_tags'
|
match 'tags/show_projects_tags',:to => 'tags#show_projects_tags'
|
||||||
|
|
Loading…
Reference in New Issue