suite
This commit is contained in:
parent
2016d01d51
commit
1fc9075c3b
@ -25,9 +25,6 @@ class Forum::ForumTopicsController < ApplicationController
|
|||||||
def index
|
def index
|
||||||
@forum_topics = ForumTopic.where(:enabled => true)
|
@forum_topics = ForumTopic.where(:enabled => true)
|
||||||
|
|
||||||
per_page = (params[:per_page] and params[:per_page] != "") ? params[:per_page] : 50
|
|
||||||
page = (params[:page] and params[:page] != "") ? params[:page] : 1
|
|
||||||
@forum_topics = @forum_topics.page(page).per(per_page)
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -14,8 +14,6 @@
|
|||||||
=render @forum_topics
|
=render @forum_topics
|
||||||
|
|
||||||
|
|
||||||
#pagination
|
|
||||||
= paginate @forum_topics
|
|
||||||
|
|
||||||
|
|
||||||
=link_to "Lancer un fil de discussion", new_forum_forum_topic_path, :class => "btn btn-primary", :style => "margin:1em 0em;float:right"
|
=link_to "Lancer un fil de discussion", new_forum_forum_topic_path, :class => "btn btn-primary", :style => "margin:1em 0em;float:right"
|
Loading…
x
Reference in New Issue
Block a user