系统消息点击跳转列表定位

This commit is contained in:
huang 2016-07-14 15:23:16 +08:00
parent f7c9bc0a19
commit e98d7a213f
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
<span style="color: red;float: left">【系统消息】</span> <span style="color: red;float: left">【系统消息】</span>
<li class="homepageSystenMessageContent fl"> <li class="homepageSystenMessageContent fl">
<%= link_to ma.subject.blank? ? (ma.content.nil? ? ma.description.html_safe : ma.content.html_safe) : ma.subject, user_system_messages_path(User.current), <%= link_to ma.subject.blank? ? (ma.content.nil? ? ma.description.html_safe : ma.content.html_safe) : ma.subject, user_system_messages_path(User.current, :anchor => "position_#{ma.id}"),
:id => "content_link_#{ma.id}", :target => '_blank' %> :id => "content_link_#{ma.id}", :target => '_blank' %>
<!--:onmouseover =>"message_titile_show($(this),event);",--> <!--:onmouseover =>"message_titile_show($(this),event);",-->
<!--:onmouseout => "message_titile_hide($(this));"--> <!--:onmouseout => "message_titile_hide($(this));"-->

View File

@ -1,7 +1,7 @@
<%= render :partial => 'users/selector_for_messages'%> <%= render :partial => 'users/selector_for_messages'%>
<% @sytem_messages.each do |system_message| %> <% @sytem_messages.each do |system_message| %>
<div class="resources mt10"> <div class="resources mt10" id="position_<%= system_message.id %>">
<div class="homepagePostBrief break_word"> <div class="homepagePostBrief break_word">
<div class="homepagePostPortrait"> <div class="homepagePostPortrait">
<%= image_tag("/images/trustie_logo1.png", :width => "50", :height => "50") %> <%= image_tag("/images/trustie_logo1.png", :width => "50", :height => "50") %>