个人留言数据为空时,加上无数据显示提示

This commit is contained in:
daiao 2017-01-19 13:53:37 +08:00
parent 0e3ce9fe0c
commit 73402735af
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<%#= javascript_include_tag "init_KindEditor","user" %>
<% end %>
<% if jours %>
<% if jours.count > 0 %>
<% jours.each do |jour| %>
<% unless jour.private == 1 && (!User.current || (User.current && jour.jour_id != User.current.id && jour.user_id != User.current.id && !User.current.admin?)) %>
<script type="text/javascript">
@ -15,6 +15,8 @@
<%#= render :partial => 'user_jours_new', :locals => {:jour => jour} %>
<% end %>
<% end %>
<% else %>
<%= render :partial => "projects/no_data" %>
<% end %>
<% if (jours.count + page * 10) < count %>
<%= link_to "点击展开更多", feedback_path(@user.id, :type => type, :page => page), :id => "show_more_jours", :remote => "true", :class => "loadMore mt10 f_grey" %>