oneclickorgs/one-click-orgs

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

Summary

Maintainability
Test Coverage
!!!
%html
  %head
    %meta{:"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
    %title
      = @page_title ? @page_title + " - " : ""
      = @current_organisation ? @current_organisation.name : "One Click Orgs"

    %link{:href=>"/favicon.ico", :rel=>"shortcut icon"}
    = stylesheet_link_tag "application"
    = stylesheet_link_tag "themes/#{Setting[:theme] ? Setting[:theme] : 'one_click_orgs'}"
    /[if lt IE 9]
      = stylesheet_link_tag 'ie'
    = javascript_include_tag :defaults
    = render :partial => 'shared/javascript_includes'
    = javascript_tag '$.fx.off = true;' if Rails.env.test?
    = yield(:head)
    = csrf_meta_tag
    = google_analytics_code
  %body
    - if OneClickOrgs.prerelease?
      = render :partial => 'shared/prerelease_bar'
    %div#container
      = render :partial => 'shared/container_start'
      = render(:partial => 'shared/control_bar')
      %div#doc
        %div#hd
          %h1.header
            = link_to(@current_organisation.name, root_path)
          = render(:partial => 'shared/tagline')
        = render :partial => 'shared/main_menu'
        - if flash[:notice]
          %div#notice
            = flash[:notice]
        - if flash[:error]
          %div#error
            = simple_format(flash[:error])

        %div#bd

          = yield

          #lightbox_screen{:style => 'display: none;'}
          #lightbox{:style => 'display: none;'}
            - if @notification
              - current_user.has_seen_notification!(@notification)
              .notification
                = render(:partial => "shared/notifications/#{@notification}")
                %p
                  %button#close_notification{'data-notification' => @notification} Close
            - else
              = yield(:lightbox)
          = render :partial => 'shared/lightboxes'
        %div.footer
          = render(:partial => 'shared/footer')
      = get_satisfaction_widget