2015-08-28 11:55:34 +08:00
|
|
|
<div class="resources mt10">
|
2015-09-24 16:30:14 +08:00
|
|
|
<div class="homepagePostBrief">
|
2015-08-29 14:08:38 +08:00
|
|
|
<div class="homepagePostPortrait">
|
2016-11-11 14:13:56 +08:00
|
|
|
<%= link_to image_tag(url_to_avatar(activity.teacher), :width => "50", :height => "50"), user_path(activity.teacher), :alt => "用户头像" %>
|
2016-01-07 10:10:24 +08:00
|
|
|
<%= render :partial => 'users/show_detail_info', :locals => {:user => activity.teacher} %>
|
2015-09-24 16:30:14 +08:00
|
|
|
</div>
|
2015-08-25 19:24:23 +08:00
|
|
|
<div class="homepagePostDes">
|
2016-05-10 14:06:34 +08:00
|
|
|
<div class="homepagePostTo break_word">
|
2015-09-24 16:30:14 +08:00
|
|
|
<% if activity.try(:teacher).try(:realname) == ' ' %>
|
2016-11-11 14:13:56 +08:00
|
|
|
<%= link_to activity.try(:teacher), user_path(activity.teacher), :class => "newsBlue mr15" %>
|
2015-09-24 16:30:14 +08:00
|
|
|
<% else %>
|
2016-11-11 14:13:56 +08:00
|
|
|
<%= link_to activity.try(:teacher).try(:realname), user_path(activity.teacher), :class => "newsBlue mr15" %>
|
2015-09-24 16:30:14 +08:00
|
|
|
<% end %>
|
|
|
|
TO
|
2016-09-09 10:23:18 +08:00
|
|
|
<%= link_to activity.name.to_s+" | 班级", course_path(activity.id,:host=>Setting.host_course), :class => "newsBlue" %>
|
2015-09-24 16:30:14 +08:00
|
|
|
</div>
|
|
|
|
<div class="homepagePostTitle break_word" >
|
|
|
|
<%= link_to activity.name, course_path(activity.id,:host=>Setting.host_course), :class => "postGrey" %>
|
|
|
|
</div>
|
2016-01-15 10:29:55 +08:00
|
|
|
<div class="homepagePostDate">
|
2015-09-24 16:30:14 +08:00
|
|
|
创建时间:<%= format_time(activity.created_at) %>
|
2015-08-25 19:24:23 +08:00
|
|
|
</div>
|
2015-09-24 16:30:14 +08:00
|
|
|
<div class="homepagePostSetting" id="act-<%= user_activity_id %>" style="visibility: hidden">
|
2015-08-25 19:24:23 +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-05-19 16:04:27 +08:00
|
|
|
</script>
|