# frozen_string_literal: true 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 = request.GET.merge("page" => page).map do |k, v| v ? "#{CGI.escape(String(k))}=#{CGI.escape(String(v))}" : CGI.escape(String(k)) end.join("&") href = "#{request.path}?#{params}" <<-HTML