2015-08-28 11:55:34 +08:00
|
|
|
<div class="resources mt10">
|
2015-08-31 14:52:56 +08:00
|
|
|
<div class="homepagePostBrief" onmouseover="$('#act-<%=user_activity.id %>').css('visibility','visible')" onmouseout="$('.homepagePostSetting').css('visibility','hidden')">
|
2015-08-25 19:24:23 +08:00
|
|
|
<div class="homepagePostPortrait">
|
|
|
|
<!-- <a href="javascript:void(0);"><img src="images/homepageImage.jpg" width="90" height="90" alt="用户头像"/></a>-->
|
2015-08-31 14:52:56 +08:00
|
|
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id), :alt => "用户头像" %>
|
2015-08-25 19:24:23 +08:00
|
|
|
</div>
|
|
|
|
<div class="homepagePostDes">
|
2015-08-31 14:52:56 +08:00
|
|
|
<div class="homepagePostTo">
|
2015-08-25 19:24:23 +08:00
|
|
|
<% if activity.try(:author).try(:realname) == ' ' %>
|
|
|
|
<%= link_to activity.try(:author), user_path(activity.author_id), :class => "newsBlue mr15" %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id), :class => "newsBlue mr15" %>
|
|
|
|
<% end %>
|
|
|
|
TO
|
|
|
|
<%= link_to activity.course.name.to_s+"(课程名称)", course_path(activity.container_id), :class => "newsBlue ml15", :style=>"word-break:break-all" %>
|
|
|
|
<!--<a href="javascript:void(0);" class="newsBlue ml15">分布式计算环境(课程名称)</a>-->
|
|
|
|
</div>
|
2015-08-31 14:52:56 +08:00
|
|
|
<div class="homepagePostTitle">
|
2015-08-25 19:24:23 +08:00
|
|
|
<a href="javascript:void(0);" class="postGrey"><%=activity.filename.to_s(附件名称)%></a>
|
|
|
|
</div>
|
|
|
|
<div class="homepagePostSubmitContainer">
|
|
|
|
<div class="homepagePostDeadline">时间:<%= format_date(activity.created_on) %></div>
|
|
|
|
</div>
|
|
|
|
<div class="homepagePostIntro">(附件描述)<%=activity.description.to_s%></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>
|