2015-08-28 11:55:34 +08:00
|
|
|
<div class="resources mt10">
|
2015-08-31 14:52:56 +08:00
|
|
|
<div class="homepagePostBrief">
|
2015-08-21 17:26:52 +08:00
|
|
|
<div class="homepagePostPortrait">
|
2015-08-31 14:52:56 +08:00
|
|
|
<%= link_to image_tag(url_to_avatar(activity.user), :width => "50", :height => "50"), user_path(activity.user_id), :alt => "用户头像" %>
|
2015-08-21 17:26:52 +08:00
|
|
|
</div>
|
|
|
|
<div class="homepagePostDes">
|
2015-08-31 14:52:56 +08:00
|
|
|
<div class="homepagePostTo break_word">
|
2015-08-21 17:26:52 +08:00
|
|
|
<% if activity.try(:user).try(:realname) == ' ' %>
|
|
|
|
<%= link_to activity.try(:user), user_path(activity.user_id), :class => "newsBlue mr15" %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to activity.try(:user).try(:realname), user_path(activity.user_id), :class => "newsBlue mr15" %>
|
2015-08-28 17:25:42 +08:00
|
|
|
<% end %> TO <!--+"(课程名称)" -->
|
2015-08-31 15:33:20 +08:00
|
|
|
<%= link_to activity.course.name.to_s+" | 课程作业", homework_common_index_path(:course => activity.course.id), :class => "newsBlue ml15"%>
|
2015-08-21 17:26:52 +08:00
|
|
|
</div>
|
2015-08-31 14:52:56 +08:00
|
|
|
<div class="homepagePostTitle break_word"> <!--+"(作业名称)"-->
|
2015-08-31 15:33:20 +08:00
|
|
|
<%= link_to activity.name.to_s, student_work_index_path(:homework => activity.id), :class => "postGrey"%>
|
2015-08-24 17:45:09 +08:00
|
|
|
</div>
|
2015-08-21 17:26:52 +08:00
|
|
|
<div class="homepagePostSubmitContainer">
|
|
|
|
<div class="homepagePostSubmit">
|
2015-09-06 22:59:27 +08:00
|
|
|
<%= student_work_activity_submit_status(homework: activity) %>
|
2015-08-21 17:26:52 +08:00
|
|
|
</div>
|
2015-09-02 18:18:08 +08:00
|
|
|
<div class="homepagePostDeadline">截止时间:<%= activity.end_time.to_s %></div>
|
2015-08-21 17:26:52 +08:00
|
|
|
</div>
|
2015-09-01 15:17:40 +08:00
|
|
|
<div class="homepagePostIntro break_word upload_img" id="activity_description_<%= user_activity_id%>">
|
2015-09-06 10:07:18 +08:00
|
|
|
<%= activity.description.html_safe %>
|
2015-08-28 17:25:42 +08:00
|
|
|
</div>
|
2015-09-01 15:17:40 +08:00
|
|
|
<div class="homepagePostSetting" style="visibility: hidden" id="act-<%=user_activity_id %>">
|
2015-08-21 17:26:52 +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>
|
|
|
|
</div>
|