39 lines
2.2 KiB
Plaintext
39 lines
2.2 KiB
Plaintext
<div class="resources mt15">
|
|
<div class="homepagePostBrief" onmouseover="$('#act-<%=user_activity.id %>').css('visibility','visible')" onmouseout="$('.homepagePostSetting').css('visibility','hidden')">
|
|
<div class="homepagePostPortrait">
|
|
<!-- <a href="javascript:void(0);"><img src="images/homepageImage.jpg" width="90" height="90" alt="用户头像"/></a>-->
|
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "90", :height => "90"), user_path(activity.author_id), :alt => "用户头像" %>
|
|
</div>
|
|
<div class="homepagePostDes">
|
|
<div class="homepagePostTo">
|
|
<% 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>
|
|
<div class="homepagePostTitle">
|
|
<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> |