simeonwillbanks/mygists

View on GitHub
app/views/layouts/_alerts.html.haml

Summary

Maintainability
Test Coverage
- if alert.present?
  .alert.alert-error
    %button.close{ "data-dismiss" => "alert", :type => "button" } ×
    = alert
- if notice.present?
  .alert.alert-success
    %button.close{ "data-dismiss" => "alert", :type => "button" } ×
    = notice
- if render_fetching_info?
  #gists-fetching-alert.alert.alert-info
    One moment please, your gists are being fetched from GitHub.