45 lines
2.0 KiB
Plaintext
45 lines
2.0 KiB
Plaintext
<div class="resources mt10">
|
|
<div class="homepagePostBrief">
|
|
<div class="homepagePostPortrait">
|
|
<%= link_to image_tag(url_to_avatar(activity.teacher), :width => "50", :height => "50"), user_path(activity.tea_id), :alt => "用户头像" %>
|
|
<%= render :partial => 'users/show_detail_info', :locals => {:user => activity.teacher} %>
|
|
</div>
|
|
<div class="homepagePostDes">
|
|
<div class="homepagePostTo break_word">
|
|
<% if activity.try(:teacher).try(:realname) == ' ' %>
|
|
<%= link_to activity.try(:teacher), user_path(activity.tea_id), :class => "newsBlue mr15" %>
|
|
<% else %>
|
|
<%= link_to activity.try(:teacher).try(:realname), user_path(activity.tea_id), :class => "newsBlue mr15" %>
|
|
<% end %>
|
|
TO
|
|
<%=link_to activity.syllabus.title, syllabus_path(activity.syllabus_id), :class => 'newsBlue ml15', :target => '_blank' %>
|
|
<span class="fb" style="color: #269ac9"> • </span>
|
|
<%= link_to activity.name.to_s+" | 班级", course_path(activity.id,:host=>Setting.host_course), :class => "newsBlue" %>
|
|
</div>
|
|
<div class="homepagePostTitle break_word" >
|
|
<%= link_to activity.name, course_path(activity.id,:host=>Setting.host_course), :class => "postGrey" %>
|
|
</div>
|
|
<div class="homepagePostDate">
|
|
创建时间:<%= format_time(activity.created_at) %>
|
|
</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>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
user_card_show_hide();
|
|
});
|
|
</script>
|