mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-20 05:39:39 +02:00
* install pagy * add pagy to controller, display default pagy UI * display hardcoded custom UI to confirm styling * implement custom UI with pagy methods * move pagination into partial * use lucide icons * only display pagination if 2 or more pages are available * add mobile pagination placeholder * use link_to and display greyed out buttons when no prev or next needed * sort transactions by date so grouping works appropriately with pagination * add space between mobile view buttons * remove debugging
16 lines
394 B
Ruby
16 lines
394 B
Ruby
class ApplicationController < ActionController::Base
|
|
include Authentication
|
|
include Pagy::Backend
|
|
|
|
default_form_builder ApplicationFormBuilder
|
|
|
|
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
|
|
allow_browser versions: :modern
|
|
|
|
private
|
|
|
|
def hosted_app?
|
|
ENV["HOSTED"] == "true"
|
|
end
|
|
helper_method :hosted_app?
|
|
end
|