2015-11-26 09:57:53 +08:00
|
|
|
<% unless users.nil? || users.empty?%>
|
|
|
|
<% users.each do |user|%>
|
|
|
|
<ul class="searchContent">
|
|
|
|
<li class="fl">
|
|
|
|
<!--<img src="images/homepageImage.jpg" alt="个人图片" width="75" height="75" class="searchCourseImage" />-->
|
|
|
|
<%= link_to image_tag(url_to_avatar(User.find(user.id)), :width => "75", :height => "75",:class=>'searchCourseImage'), user_path(user.id), :alt => "用户头像" %>
|
|
|
|
</li>
|
|
|
|
<li class="fl searchContentDes">
|
|
|
|
<ul class="fl">
|
|
|
|
<li class="f16 mb5"><a href="<%= user_path(user.id)%>" class="fontGrey3 fl"><%= user.try(:highlight).try(:login) ? user.highlight.login[0].html_safe : user.login %>(<%= user.try(:highlight).try(:lastname) ? user.highlight.lastname[0].html_safe : user.lastname%><%= user.try(:highlight).try(:firstname) ? user.highlight.firstname[0].html_safe : user.firstname %>)</a>
|
|
|
|
<div class="mt5 fl"><%= image_tag("search_icon_03.png", :width=>"8", :height=>"16" ,:class=>"fl") %><span class="searchTag"><%= get_user_identity(User.find(user.id).user_extensions.identity) %></span></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</li>
|
|
|
|
<li class="fontGrey3 mb5"><%= User.find(user.id).user_extensions && User.find(user.id).user_extensions.brief_introduction.present? ? User.find(user.id).user_extensions.brief_introduction : '这位童鞋很懒,什么也没有留下~'%></li>
|
2015-12-14 10:27:30 +08:00
|
|
|
<li class="f12 fontGrey2"><span class="mr30">加入时间:<%= format_date( User.find(user.id).created_on)%></span><span class="mr30">
|
2016-06-27 15:36:31 +08:00
|
|
|
最后登录时间:<%= format_date( User.find(user.id).last_login_on)%></span><span class="mr30">
|
2015-12-14 10:27:30 +08:00
|
|
|
<%= User.find(user.id).user_extensions.occupation.present? ? '单位:'+User.find(user.id).user_extensions.occupation : ''%></span></li>
|
2015-11-26 09:57:53 +08:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<div class="pageRoll">
|
|
|
|
<%= paginate users,:params => {:controller => 'welcome', :action => 'search',:search_type=>'user'}%>
|
|
|
|
</div>
|
|
|
|
<% end %>
|