assemblymade/coderwall

View on GitHub
app/views/shared/_notification_bar.html.haml

Summary

Maintainability
Test Coverage
#main-content
  .notification-bar.hidden
    .notification-bar-inside{ class: (flash[:error].blank? ? 'notice' : 'error') }
      %p= flash[:notice] || flash[:error]
      %a.close-notification{ onclick: "$(this).parent().parent().hide();" }
        %span Close