asm-products/verba

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

Summary

Maintainability
Test Coverage
!!!
%html
  %head
    %title Verba
    = stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true
    %meta{:content => "width=device-width, initial-scale=1", :name => "viewport"}/
    = javascript_include_tag 'application', 'data-turbolinks-track' => true
    = csrf_meta_tags
  %body{class: params[:controller]}
    .container{:class => "profile" }
      - unless %w(users posts).include?(params[:controller])
        = flash_message

      - if flash[:achievement]
        .overlay
        .big-modal
          .close x
          %h3 You earned...
          .achievements
            - flash[:achievement].each do |achievement|
              .achievement
                %span{class: "#{achievement.second}-badge"}
                = achievement.first
      = yield