18F/identity-idp

View on GitHub
app/views/shared/_sp_alert.html.erb

Summary

Maintainability
Test Coverage
<% alert = decorated_sp_session.sp_alert(section) %>
<% if alert %>
  <%= render AlertComponent.new(type: :info, text_tag: 'div', class: 'margin-bottom-4') do %>
    <%= raw sanitize(alert, tags: %w[a b strong em br p ol ul li], attributes: %w[href target]) %>
  <% end %>
<% end %>