diff --git a/app/views/games/_game_show.html.erb b/app/views/games/_game_show.html.erb index ed5c677a5..207a0483c 100644 --- a/app/views/games/_game_show.html.erb +++ b/app/views/games/_game_show.html.erb @@ -33,7 +33,9 @@ <% end %>
  • - 评论<%= @discusses_count %> + + 评论<%= @discusses_count if @discusses_count > 0%> + <%#= link_to '', shixun_discuss_shixun_path(@myshixun.shixun), :class => "tab_type", :style => "font-size: 16px", :remote => true %>
  • <% if @st == 0 %> diff --git a/app/views/shixuns/shixun_discuss.js.erb b/app/views/shixuns/shixun_discuss.js.erb index 685e7e762..81a34c89f 100644 --- a/app/views/shixuns/shixun_discuss.js.erb +++ b/app/views/shixuns/shixun_discuss.js.erb @@ -3,7 +3,9 @@ $(".-tab-nav li").removeClass("tab_hover"); $('#tab_nav_4').addClass("tab_hover"); $(".tab-info").hide(); $('#tab_con_4').show().html("<%= j(render :partial => "games/shixun_comment_list") %>"); +<% if @discusses_count > 0 %> $("#discusses_count").html("<%= @discusses_count %>"); +<% end %> // 评论区域的回复按钮 function reply_to_dis(id, name){ $("#comment_news").attr("placeholder", "回复"+name+":");