2 class IssuedBlocksController < ApplicationController
4 include PaginationMethods
8 before_action :authorize_web
9 before_action :set_locale
11 authorize_resource :class => UserBlock
13 before_action :lookup_user
14 before_action :check_database_readable
17 # shows a list of all the blocks by the given user.
19 @params = params.permit(:user_display_name)
21 user_blocks = UserBlock.where(:creator => @user)
23 @user_blocks, @newer_user_blocks_id, @older_user_blocks_id = get_page_items(user_blocks, :includes => [:user, :creator, :revoker])
25 @show_user_name = true
26 @show_creator_name = false
28 render :partial => "user_blocks/page" if turbo_frame_request_id == "pagination"