2015-11-17 09:51:16 +08:00
|
|
|
<% project = Project.find(activity.org_act_id) %>
|
2015-11-14 14:57:49 +08:00
|
|
|
<% user = User.find(project.user_id)%>
|
|
|
|
<div class="resources mt10">
|
|
|
|
<div class="homepagePostBrief">
|
|
|
|
<div class="homepagePostPortrait">
|
|
|
|
<%= link_to image_tag(url_to_avatar(user), :width => "50", :height => "50"), user_path(user), :alt => "用户头像" %>
|
2016-01-07 15:58:22 +08:00
|
|
|
<%= render :partial => 'users/show_detail_info', :locals => {:user => user} %>
|
2015-11-14 14:57:49 +08:00
|
|
|
</div>
|
|
|
|
<div class="homepagePostDes">
|
|
|
|
<div class="homepagePostTo break_word mt-4">
|
|
|
|
<% if user.try(:realname) == ' ' %>
|
|
|
|
<%= link_to user, user_path(user), :class => "newsBlue mr15" %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to user.try(:realname), user_path(user), :class => "newsBlue mr15" %>
|
|
|
|
<% end %>
|
|
|
|
TO
|
|
|
|
<%= link_to project.to_s+" | 项目", project_path(project.id,:host=>Setting.host_course), :class => "newsBlue ml15" %>
|
|
|
|
</div>
|
|
|
|
<div class="homepagePostTitle break_word" >
|
|
|
|
<%= link_to project.name, project_path(project.id,:host=>Setting.host_course), :class => "postGrey" %>
|
|
|
|
</div>
|
|
|
|
<div class="homepagePostDate">
|
|
|
|
创建时间:<%= format_time(project.created_on) %>
|
|
|
|
</div>
|
|
|
|
<div class="homepagePostSetting" id="act-<%= user_activity_id %>" style="visibility: hidden">
|
|
|
|
<ul>
|
|
|
|
<li class="homepagePostSettingIcon">
|
|
|
|
<ul class="homepagePostSettiongText">
|
|
|
|
<li><a href="javascript:void(0);" class="postOptionLink">编辑</a></li>
|
|
|
|
<li><a href="javascript:void(0);" class="postOptionLink">复制</a></li>
|
|
|
|
<li><a href="javascript:void(0);" class="postOptionLink">删除</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|