<%= render :partial => 'users/selector_for_messages'%>

<% @sytem_messages.each do |system_message| %>
    <div class="resources mt10">
      <div class="homepagePostBrief break_word">
        <div class="homepagePostPortrait">
          <%= image_tag("/images/trustie_logo1.png", :width => "50", :height => "50") %>
        </div>
        <div class="homepagePostDes">
          <div class="homepagePostTo break_word">
            <span class="fl"><span style="color:#0781b4;">Trustie平台 </span>发布了系统消息：</span>
            <span style="color:#0781b4; max-width:470px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;vertical-align: top;"><%= system_message.subject.nil? ? "系统消息" : system_message.subject %></span>
          </div>
          <div class="cl"></div>
          <div class="homepagePostIntro break_word upload_img" id="system">
            <p>
              <%= system_message.content.nil? ? system_message.description.html_safe : system_message.content.html_safe %>
            </p>
          </div>
          <div class="cl"></div>
          <p class="homepagePostDeadline">发布时间：<%= format_time(system_message.created_at) %></p>
        </div>
        <div class="cl"></div>
      </div>
    </div>
<% 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%>
</ul>