|
|
|
@ -25,7 +25,7 @@
|
|
|
|
|
<%# 系统贴吧 %>
|
|
|
|
|
<li><%= link_to "用户留言",user_message_path(User.current, :type => 'user_feedback'), :class => "resourcesGrey" %></li>
|
|
|
|
|
<%# 系统消息 %>
|
|
|
|
|
<li><%= link_to "系统消息", user_message_path(User.current, :type => 'system_messages'), :class => "resourcesGrey" %></li>
|
|
|
|
|
<li><%= link_to "系统消息", user_system_messages_path(User.current), :class => "resourcesGrey" %></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
@ -54,7 +54,7 @@
|
|
|
|
|
<span style="color: red;float: left">【系统消息】</span><li class="homepageSystenMessageContent fl" id="content_<%= usm.id %>">
|
|
|
|
|
<li class="homepageSystenMessageContent fl">
|
|
|
|
|
|
|
|
|
|
<%= link_to usm.content.nil? ? usm.description.html_safe : usm.content.html_safe, user_message_path(User.current, :type => "system_messages"),
|
|
|
|
|
<%= link_to usm.content.nil? ? usm.description.html_safe : usm.content.html_safe, user_system_messages_path(User.current),
|
|
|
|
|
:id => "content_link_#{usm.id}",
|
|
|
|
|
:onmouseover =>"message_titile_show($(this),event);",
|
|
|
|
|
:onmouseout => "message_titile_hide($(this));"
|
|
|
|
@ -432,46 +432,6 @@
|
|
|
|
|
</ul>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%# 系统消息 %>
|
|
|
|
|
<% if ma.class == SystemMessage %>
|
|
|
|
|
<ul class="homepageNewsList fl" id="list_<%= ma.id %>">
|
|
|
|
|
<li class="homepageNewsPortrait fl">
|
|
|
|
|
<a href="javascript:void(0);">
|
|
|
|
|
<div class="navHomepageLogo fl">
|
|
|
|
|
<%=image_tag("/images/logo.png",width:"30px", height: "30px",class: "mt3")%>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="homepageNewsPubType fl"><span class="newsBlue homepageNewsPublisher" >Trustie平台</span><span class="homepageNewsType fl">发布新消息:</span></li>
|
|
|
|
|
<span style="color: red;float: left">【系统消息】</span><li class="homepageSystenMessageContent fl" id="content_<%= ma.id %>">
|
|
|
|
|
<%= link_to ma.content.nil? ? ma.description.html_safe : ma.content.html_safe, user_message_path(User.current, :type => "system_messages"),
|
|
|
|
|
:id => "content_link_#{ma.id}",
|
|
|
|
|
:onmouseover =>"message_titile_show($(this),event);",
|
|
|
|
|
:onmouseout => "message_titile_hide($(this));"
|
|
|
|
|
%>
|
|
|
|
|
<script>
|
|
|
|
|
$(function () {
|
|
|
|
|
function nh_show_btn() {
|
|
|
|
|
if ($("#system_message_show_<%= ma.id %>").is(':hidden')) {
|
|
|
|
|
if ($("#content_link_<%= ma.id %>").text().length > 60) {
|
|
|
|
|
$("#system_message_show_<%= ma.id %>").show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
nh_show_btn();
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<p style="display: none;" id="system_message_show_<%= ma.id%>">
|
|
|
|
|
<a id="expend_more_information<%= ma.id%>" style="color: #0781b4;" href="javascript:void(0)" onclick="show_more_system_messages('#list_<%= ma.id%>', '#content_<%=ma.id%>','#expend_more_information<%= ma.id%>');" value="show_more">[展开]</a>
|
|
|
|
|
</p>
|
|
|
|
|
</li>
|
|
|
|
|
<div style="display:none;" class="message_title_red system_message_style">
|
|
|
|
|
<%= ma.content.nil? ? ma.description.html_safe : ma.content.html_safe %>
|
|
|
|
|
</div>
|
|
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
|
|
|
|
</ul>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<ul class="wlist" style=" border:none; padding-top: 15px;">
|
|
|
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
|
|
|
|
|