diff --git a/app/views/projects/_project._attachment.html.erb b/app/views/projects/_project._attachment.html.erb new file mode 100644 index 000000000..3a5a29a6e --- /dev/null +++ b/app/views/projects/_project._attachment.html.erb @@ -0,0 +1,46 @@ +
+
+
+ <%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id), :alt => "用户头像" %> + <%= render :partial => 'users/show_detail_info', :locals => {:user => activity.author} %> +
+
+
+ <% 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.project.name.to_s+" | 项目资源", project_files_path(activity.course), :class => "newsBlue ml15" %> +
+
+ <%= link_to activity.filename, project_files_path(activity.course), :class => "postGrey" %> +
+
+
+ 文件大小: + <%= number_to_human_size activity.filesize%> +
+
上传时间:<%= format_time(activity.created_on) %>
+
+ +
+
+
+
+