项目附件动态展开更多过滤条件中含有issue问题
This commit is contained in:
parent
7e2834f680
commit
40620d139d
|
@ -326,7 +326,7 @@ class ProjectsController < ApplicationController
|
||||||
else
|
else
|
||||||
@events_pages = ForgeActivity.includes(:project).where("forge_activities.project_id = ? and projects.is_public = ? and forge_act_type != ? ",@project,1, "Document").order("created_at desc").page(params['page'|| 1]).per(10);
|
@events_pages = ForgeActivity.includes(:project).where("forge_activities.project_id = ? and projects.is_public = ? and forge_act_type != ? ",@project,1, "Document").order("created_at desc").page(params['page'|| 1]).per(10);
|
||||||
end
|
end
|
||||||
|
@type = params[:type]
|
||||||
# 版本库统计图
|
# 版本库统计图
|
||||||
# unless @project.gpid.nil? || @project.project_score.changeset_num == 0
|
# unless @project.gpid.nil? || @project.project_score.changeset_num == 0
|
||||||
# # rep_statics_commit = @project.rep_statics.order("commits_num desc")
|
# # rep_statics_commit = @project.rep_statics.order("commits_num desc")
|
||||||
|
|
|
@ -1,26 +1,29 @@
|
||||||
<div class="container-big mt10">
|
<% unless activity.nil? %>
|
||||||
<div class="pr">
|
<div class="container-big mt10">
|
||||||
<div class="homepagePostPortrait">
|
<div class="pr">
|
||||||
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id), :alt => "用户头像" %>
|
<div class="homepagePostPortrait">
|
||||||
<%#= render :partial => 'users/show_detail_info', :locals => {:user => activity.author} %>
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id), :alt => "用户头像" %>
|
||||||
</div>
|
<%#= render :partial => 'users/show_detail_info', :locals => {:user => activity.author} %>
|
||||||
<div class="content-big">
|
|
||||||
<div class="homepagePostTo break_word">
|
|
||||||
<%= link_to activity.try(:author).show_name, user_path(activity.author_id), :class => "newsBlue mr15" %>
|
|
||||||
TO
|
|
||||||
<%= link_to activity.project.name.to_s+" | 项目资源", project_files_path(activity.course), :class => "newsBlue ml15" %>
|
|
||||||
</div>
|
|
||||||
<div class="homepagePostTitle break_word" >
|
|
||||||
<%= link_to activity.filename, project_files_path(activity.course), :class => "postGrey" %>
|
|
||||||
</div>
|
|
||||||
<div class="homepagePostSubmitContainer">
|
|
||||||
<div class="homepagePostDeadline mr15">
|
|
||||||
文件大小:
|
|
||||||
<%= number_to_human_size activity.filesize%>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="homepagePostDeadline">上传时间:<%= format_time(activity.created_on) %></div>
|
<div class="content-big">
|
||||||
|
<div class="homepagePostTo break_word">
|
||||||
|
<%= link_to activity.try(:author).show_name, user_path(activity.author_id), :class => "newsBlue mr15" %>
|
||||||
|
TO
|
||||||
|
<%= link_to activity.project.name.to_s+" | 项目资源", project_files_path(activity.course), :class => "newsBlue ml15" %>
|
||||||
|
</div>
|
||||||
|
<div class="homepagePostTitle break_word" >
|
||||||
|
<%= link_to activity.filename, project_files_path(activity.course), :class => "postGrey" %>
|
||||||
|
</div>
|
||||||
|
<div class="homepagePostSubmitContainer">
|
||||||
|
<div class="homepagePostDeadline mr15">
|
||||||
|
文件大小:
|
||||||
|
<%= number_to_human_size activity.filesize%>
|
||||||
|
</div>
|
||||||
|
<div class="homepagePostDeadline">上传时间:<%= format_time(activity.created_on) %></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<% end %>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
Loading…
Reference in New Issue