KyivKrishnaAcademy/ved_akadem_students

View on GitHub
app/views/unsubscribes/destroy.html.haml

Summary

Maintainability
Test Coverage
- provide(:title, full_title(t('.unsubscribe')))

.row.vert-offset-top-12
  - if @unsubscribe.present? && @unsubscribe.destroyed?
    .col-xs-12.text-center.text-success
      %span.glyphicon.glyphicon-ok-circle.fa-4x

    .col-xs-12.vert-offset-top-1.text-center.text-success
      = t '.success'
      = t ".#{@unsubscribe.kind}"

  - else
    .col-xs-12.text-center.text-danger
      %span.glyphicon.glyphicon-remove-circle.fa-4x

    .col-xs-12.vert-offset-top-1.text-center.text-danger
      = t('.errored')

    .col-xs-12.vert-offset-top-1.text-center
      = link_to t('.edit_subscriptions'), edit_subscriptions_path