Sha256: e9050de76078a3f46518cbc6bf553c114dda05f24dd9fd0fe5342e4848ed77c0

Contents?: true

Size: 570 Bytes

Versions: 57

Compression:

Stored size: 570 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 %>" data-turbo="false">dejá un mensaje</a>
      para que te avisemos
      <br>
      cuando el problema esté resuelto 🙏
    </div>
  ERB
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
pg_rails-7.6.27 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.26 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.25 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.24 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.24.pre.5 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.24.pre.4 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.24.pre.3 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.23 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.22 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.22.pre.3 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.22.pre.2 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.22.pre.1 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.21 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.21.pre.11 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.21.pre.10 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.21.pre.9 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.21.pre.8 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.21.pre.7 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.21.pre.6 pg_engine/app/components/internal_error_component.rb
pg_rails-7.6.21.pre.5 pg_engine/app/components/internal_error_component.rb