module Zuma
  module BaseHelper
    def zuma_sidebar
      add_sidebar "User Blocks", "zuma", {
        Zuma::UserBlock => zuma_is_blocking_index_path,
      }
    end

    def block_status(user, blocked_user)
      if @user_block.present?
        if @user_block.is_blocked
          user + " IS blocking " + blocked_user
        elsif @user_block.is_blocked == false
          user + " IS NOT blocking " + blocked_user
        end
      end
    end
  end
end
