socialforge/app/views/users/_course_attachment.html.erb

46 lines
2.0 KiB
Plaintext
Raw Normal View History

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-25 19:24:23 +08:00
<div class="homepagePostPortrait">
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id), :alt => "用户头像" %>
2016-01-14 17:52:48 +08:00
<%= render :partial => 'users/show_detail_info', :locals => {:user => activity.author} %>
2015-08-25 19:24:23 +08:00
</div>
<div class="homepagePostDes">
<div class="homepagePostTo break_word mt-4">
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 %>
2015-09-24 16:30:14 +08:00
TO
<%= link_to activity.course.name.to_s+" | 课程资源", course_files_path(activity.course), :class => "newsBlue ml15" %>
2015-08-25 19:24:23 +08:00
</div>
2015-09-24 16:30:14 +08:00
<div class="homepagePostTitle break_word" >
<%= link_to activity.filename, course_files_path(activity.course), :class => "postGrey" %>
2015-08-25 19:24:23 +08:00
</div>
<div class="homepagePostSubmitContainer">
2015-09-24 16:30:14 +08:00
<div class="homepagePostDeadline mr15">
文件大小:
<%= number_to_human_size activity.filesize%>
</div>
<div class="homepagePostDeadline">上传时间:<%= format_time(activity.created_on) %></div>
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();
});
</script>