Add pagination
This commit is contained in:
1 parent
766ef2df0a
commit
873de8958b
2 files changed
+6
-1
No files matched your search
@@ -1,6 +1,6 @@
|
||||
class Admin::PageContentsController < OrbitAdminController
|
||||
def index
|
||||
@pages = Page.where(:module=>"page_content")
|
||||
@pages = Page.where(:module=>"page_content").page(params[:page]).per(10)
|
||||
@table_fields = ["Name","Version","Updated At","Last Modified By"]
|
||||
end
|
||||
|
||||
|
||||
@@ -24,4 +24,9 @@
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<%=
|
||||
content_tag :div, class: "bottomnav clearfix" do
|
||||
content_tag :div, paginate(@pages), class: "pagination pagination-centered"
|
||||
end
|
||||
%>
|
||||
|
||||
Reference in new issue
Block a user