2015-10-19 14:58:44 +08:00
|
|
|
<% project = Project.find(activity.act_id) %>
|
|
|
|
<% user = User.find(project.user_id)%>
|
2016-10-18 13:34:28 +08:00
|
|
|
<div class="container-big mt10">
|
|
|
|
<div class="pr">
|
2015-10-16 10:54:22 +08:00
|
|
|
<div class="homepagePostPortrait">
|
2015-10-19 14:58:44 +08:00
|
|
|
<%= link_to image_tag(url_to_avatar(user), :width => "50", :height => "50"), user_path(user), :alt => "用户头像" %>
|
2016-01-07 10:10:24 +08:00
|
|
|
<%= render :partial => 'users/show_detail_info', :locals => {:user => user} %>
|
2015-10-19 14:58:44 +08:00
|
|
|
</div>
|
2016-10-18 13:34:28 +08:00
|
|
|
<div class="content-big">
|
2016-05-10 14:06:34 +08:00
|
|
|
<div class="homepagePostTo break_word">
|
2015-10-19 14:58:44 +08:00
|
|
|
<% 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>
|
2016-01-15 10:29:55 +08:00
|
|
|
<div class="homepagePostDate">
|
2015-10-19 14:58:44 +08:00
|
|
|
创建时间:<%= format_time(project.created_on) %>
|
2015-10-16 10:54:22 +08:00
|
|
|
</div>
|
2015-10-19 14:58:44 +08:00
|
|
|
<div class="homepagePostSetting" id="act-<%= user_activity_id %>" style="visibility: hidden">
|
2015-10-16 10:54:22 +08:00
|
|
|
<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>
|
2016-05-03 17:11:30 +08:00
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
user_card_show_hide();
|
|
|
|
});
|
2016-10-18 13:34:28 +08:00
|
|
|
</script>
|