Fixed topic pagination contol location
This commit is contained in:
@@ -8,7 +8,6 @@ class TopicsController < ApplicationController
|
|||||||
@topic.hit! if @topic
|
@topic.hit! if @topic
|
||||||
|
|
||||||
@posts = @topic.posts.page(params[:page]).per(10)
|
@posts = @topic.posts.page(params[:page]).per(10)
|
||||||
#Kaminari.paginate_array(@topic).page(params[:page]).per(10)
|
|
||||||
|
|
||||||
@my_blockquote = {
|
@my_blockquote = {
|
||||||
'Quote' => [
|
'Quote' => [
|
||||||
|
|||||||
@@ -41,9 +41,9 @@
|
|||||||
<%end%>
|
<%end%>
|
||||||
<% end %>
|
<% end %>
|
||||||
</table>
|
</table>
|
||||||
<div style="text-align: center">
|
|
||||||
<%= paginate(@posts)%>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="text-align: center">
|
||||||
|
<%= paginate(@posts)%>
|
||||||
|
</div>
|
||||||
<div class="right controls"><p><%= link_to "Back to Forum", forum_path(@topic.forum) %></p></div>
|
<div class="right controls"><p><%= link_to "Back to Forum", forum_path(@topic.forum) %></p></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user