From a44a8cf69a4cc38f73933eeb2ae2e1bc4d27e39d Mon Sep 17 00:00:00 2001
From: daiao <358551898@qq.com>
Date: Sun, 17 Sep 2017 17:30:23 +0800
Subject: [PATCH] =?UTF-8?q?TPI=E8=AF=84=E8=AE=BA=E6=95=B0=E5=AD=97?=
=?UTF-8?q?=E4=B8=BA0=E4=B8=8D=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/games/_game_show.html.erb | 4 +++-
app/views/shixuns/shixun_discuss.js.erb | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
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+":");