解决图标点两次的问题

This commit is contained in:
huang 2015-08-24 11:11:45 +08:00
parent ff3816e97d
commit e129404b4c
2 changed files with 3 additions and 3 deletions

View File

@ -56,9 +56,9 @@
</li><!---level1 end--->
<!--消息提醒-->
<div class="navHomepageNews">
<%= link_to image_tag("/images/news_icon_small.png" , :width => "21", :height => "24"), {:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user} %>
<%= link_to image_tag("/images/news_icon_small.png" , :width => "21", :height => "24"), user_message_path(User.current) %>
<% if User.current.count_new_message >0 %>
<div class="newsActive"></div>
<div class="newsActive"><%= link_to "" , user_message_path(User.current) %></div>
<% end %>
</div>
<!--消息提醒end-->

View File

@ -360,7 +360,7 @@ RedmineApp::Application.routes.draw do
end
match 'users/:id/user_newfeedback', :to => 'users#user_newfeedback', :via => :get, :as => "feedback"
match 'users/:id/user_projects', :to => 'users#user_projects', :via => :get
match 'users/:id/user_messages', :to => 'users#user_messages', :via => :get
match 'users/:id/user_messages', :to => 'users#user_messages', :via => :get, :as => "user_message"