全部帖子数据取值错误

This commit is contained in:
cxt 2017-08-01 10:40:50 +08:00
parent 6981b649e8
commit b8f9cf6ce2
3 changed files with 3 additions and 2 deletions

View File

@ -182,6 +182,7 @@ class BoardsController < ApplicationController
@type = 1
end
@all_count = @topics.count
#分页
@limit = 15
@is_remote = true

View File

@ -48,7 +48,7 @@
<div class="with85 fl">
<div class="ml15 user_bg_shadow">
<div class="homepageRightBanner user_bg_shadow clearfix">
<p class="color-grey fl font-16">全部帖子</p><span class="btn-cir btn-cir-grey ml5 mt5 fl"><%= @topics.count %></span>
<p class="color-grey fl font-16">全部帖子</p><span class="btn-cir btn-cir-grey ml5 mt5 fl"><%= @all_count %></span>
<% if User.current.logged? %>
<a href="<%= new_board_message_path(@board.id) %>" class=" task-btn task-btn-green fr">+ 我要发布</a>
<% end %>

View File

@ -26,7 +26,7 @@
<%= f.kindeditor :content, :editor_id => 'message_content_editor',
:owner_id => @message.nil? ? 0: @message.id,
:owner_type => OwnerTypeHelper::MESSAGE,
:width => '90%',
:width => '89.8%',
:height => 300,
:minHeight=>300,
:class => 'talk_text fl',