Browse Source

Quick correction on orgas infinite paging

remotes/origin/master
echarp 2 years ago
parent
commit
7ddfdff7c4
  1. 2
      app/controllers/orgas_controller.rb
  2. 1
      app/views/orgas/index.html.haml

2
app/controllers/orgas_controller.rb

@ -13,6 +13,8 @@ class OrgasController < ApplicationController
@search = @unfiltered_orgas.ransack params[:q]
@search.sorts = 'updated_at desc' if @search.sorts.empty?
@orgas = @search.result.page params[:page]
respond_to :html, :json
end
# GET /orgas/new

1
app/views/orgas/index.html.haml

@ -13,6 +13,7 @@
:region_name, Orga.human_attribute_name(:region)
%th.updated_at= sort_link @search,
:updated_at
%tbody
- @orgas.each do |orga|
%tr{ class: orga.active ? 'active' : 'inactive' }

Loading…
Cancel
Save