关联commit数据为空时,显示调整

This commit is contained in:
daiao 2016-12-23 20:34:23 +08:00
parent 1c868e5f12
commit 0ce62b9e8c
2 changed files with 7 additions and 4 deletions

View File

@ -5,10 +5,12 @@
<div class="cl"></div>
</div>
<div class="muban_popup_con " >
<div class="newupload_conbox " >
<% if @commits.blank? %>
<%= render :partial => "projects/no_data" %>
<div class="newupload_conbox" style="padding: 0px">
<%= render :partial => "projects/no_data" %>
</div>
<% else %>
<div class="newupload_conbox">
<div class=" clear">
<div class="cl"></div>
<%= form_tag(url_for(:controller => 'issues', :action => 'issue_commits', :project_id => @project.id, :type => "search"),
@ -30,8 +32,9 @@
<div id="issue_commit_list">
<%= render :partial => "issues/issue_commits_list" %>
</div>
</div>
<% end %>
</div>
</div>
</div>

View File

@ -889,7 +889,7 @@ a:hover.btn_newpro_grey,a:active.btn_newpro_grey{ background: #eaeaea;}
.table-td-w180{display:inline-block;with:180px; overflow:hidden; text-overflow:ellipsis; -o-text-overflow:ellipsis; white-space:nowrap;}
.table-td-w380{display:inline-block;with:380px; overflow:hidden; text-overflow:ellipsis; -o-text-overflow:ellipsis; white-space:nowrap;}
/*项目简介*/
.pro_new_info{ border:1px solid #ddd; background-color:#fff; width: 100%;}
.pro_new_info{ border:1px solid #ddd; background-color:#fff;}
.pro_new_info h2{ background: #fff; font-size: 14px; color: #333; height: 40px; line-height: 40px; padding-left: 15px; border-bottom:1px solid #e5e5e5;}
/*.pro_new_info p{ padding-bottom:2px; padding-left: 15px; color: #666; padding-right: 5px}*/
.pro_new_info_weight{ font-size: 16px; font-weight: bold;}