suite
This commit is contained in:
parent
b1eba85bb0
commit
2016d01d51
@ -23,7 +23,7 @@ class Forum::ForumTopicsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@forum_topics = ForumTopic.where(:enabled => true).all
|
@forum_topics = ForumTopic.where(:enabled => true)
|
||||||
|
|
||||||
per_page = (params[:per_page] and params[:per_page] != "") ? params[:per_page] : 50
|
per_page = (params[:per_page] and params[:per_page] != "") ? params[:per_page] : 50
|
||||||
page = (params[:page] and params[:page] != "") ? params[:page] : 1
|
page = (params[:page] and params[:page] != "") ? params[:page] : 1
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
-if moderator?
|
-if moderator?
|
||||||
%th{:style => "width:50px;"}
|
%th{:style => "width:50px;"}
|
||||||
=render @forum_topics
|
=render @forum_topics
|
||||||
|
|
||||||
|
|
||||||
#pagination
|
#pagination
|
||||||
= paginate @forum_topics
|
= 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