issue为空是时候导出不显示

This commit is contained in:
huang 2016-10-27 15:10:52 +08:00
parent f0b43a603e
commit 86c977ca2d
1 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,9 @@
</tbody>
</table>
</div>
<%= link_to "导出", version_path(@version, :format => 'xls'), :class=>"btn_newpro_grey fl mt10 ml15 mb10"%>
<% unless @issues.blank? %>
<%= link_to "导出", version_path(@version, :format => 'xls'), :class=>"btn_newpro_grey fl mt10 ml15 mb10"%>
<% end %>
<div class="pages fr" style="width:auto; display:inline-block; margin-right:10px;">
<div>
<%= pagination_links_full @issue_pages, @issue_count, :per_page_links => false, :remote => false, :flag => true, :is_new => true%>