Sha256: 8b5edeefd1751b5e3b46f222128fd5dddb1bbbe3622e67f80fcd5fbf4034bf9c

Contents?: true

Size: 551 Bytes

Versions: 55

Compression:

Stored size: 551 Bytes

Contents

class InternalErrorComponent < BaseComponent
  def initialize(error_msg: nil)
    @error_msg = error_msg
    super
  end

  def alert_type
    :critical
  end

  erb_template <<~ERB
    <div>
      <div class="mb-1">
        <%= @error_msg || 'Ocurrió algo inesperado' %>
      </div>
      Por favor, intentá nuevamente
      <br>
      o <a class="text-decoration-underline" href="<%= new_public_mensaje_contacto_path %>">dejá un mensaje</a>
      para que te avisemos
      <br>
      cuando el problema esté resuelto 🙏
    </div>
  ERB
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
pg_rails-7.3.5 pg_engine/app/components/internal_error_component.rb
pg_rails-7.3.4 pg_engine/app/components/internal_error_component.rb
pg_rails-7.3.3 pg_engine/app/components/internal_error_component.rb
pg_rails-7.3.2 pg_engine/app/components/internal_error_component.rb
pg_rails-7.3.1 pg_engine/app/components/internal_error_component.rb
pg_rails-7.3.0 pg_engine/app/components/internal_error_component.rb
pg_rails-7.2.3 pg_engine/app/components/internal_error_component.rb
pg_rails-7.2.2 pg_engine/app/components/internal_error_component.rb
pg_rails-7.2.1 pg_engine/app/components/internal_error_component.rb
pg_rails-7.2.0 pg_engine/app/components/internal_error_component.rb
pg_rails-7.1.16 pg_engine/app/components/internal_error_component.rb
pg_rails-7.1.15 pg_engine/app/components/internal_error_component.rb
pg_rails-7.1.14 pg_engine/app/components/internal_error_component.rb
pg_rails-7.1.13 pg_engine/app/components/internal_error_component.rb
pg_rails-7.1.12 pg_engine/app/components/internal_error_component.rb
pg_rails-7.1.11 pg_engine/app/components/internal_error_component.rb
pg_rails-7.1.10 pg_engine/app/components/internal_error_component.rb
pg_rails-7.1.9 pg_engine/app/components/internal_error_component.rb
pg_rails-7.1.8 pg_engine/app/components/internal_error_component.rb
pg_rails-7.1.7 pg_engine/app/components/internal_error_component.rb