This commit is contained in:
huang 2016-10-08 15:58:05 +08:00
parent 84fd99ced1
commit 54b66b86dc
2 changed files with 30 additions and 26 deletions

View File

@ -379,6 +379,9 @@ update
def show def show
# 获取版本库目录结构 # 获取版本库目录结构
@entries = @repository.entries(@path, @rev) @entries = @repository.entries(@path, @rev)
if request.xhr?
@entries ? render(:partial => 'dir_list_content') : render(:nothing => true)
else
@changesets_latest_coimmit = @g.commits(@project.gpid, :ref_name => @rev)[0] @changesets_latest_coimmit = @g.commits(@project.gpid, :ref_name => @rev)[0]
# 总的提交数 # 总的提交数
@ -407,6 +410,7 @@ update
render :layout => 'base_projects' render :layout => 'base_projects'
end end
end
alias_method :browse, :show alias_method :browse, :show

View File

@ -53,7 +53,7 @@
<!--邀请加入--> <!--邀请加入-->
<div class="subNavBoxProject"> <div class="subNavBoxProject">
<div id="project_memu_list"> <div id="project_memu_list">
<%= render :partial => 'projects/development_group', :locals => {:project => @project} %> <%#= render :partial => 'projects/development_group', :locals => {:project => @project} %>
</div> </div>
</div> </div>
<!--项目侧导航 end--> <!--项目侧导航 end-->