# frozen_string_literal: true require "rodauth/oauth" module Rodauth Feature.define(:oauth_management_base, :OauthManagementBase) do depends :oauth_authorize_base button "Previous", "oauth_management_pagination_previous" button "Next", "oauth_management_pagination_next" def oauth_management_pagination_links(paginated_ds) html = +'" end def oauth_management_pagination_link(page, label: page, current: false, classes: "") classes += " disabled" if current || !page classes += " active" if current if page params = URI.encode_www_form(request.GET.merge("page" => page)) href = "#{request.path}?#{params}" <<-HTML