oneclickorgs/one-click-orgs

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

Summary

Maintainability
Test Coverage
!!!
%html
  %head
    %meta{:"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
    %title
      = (@page_title ? @page_title : "Form a new Organisation") + ' -'
      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
    = javascript_tag '$.fx.off = true;' if Rails.env.test?
    = yield(:head)
    = csrf_meta_tag
    = google_analytics_code
  %body.setup
    %div#container
      %div#doc
        %div#hd
          %h1.header
            - if Setting[:theme] == 'cooperatives_uk'
              = link_to(image_tag('themes/cooperatives_uk/cuk-logo-48.png', :alt => 'Co-operatives UK', :style => 'vertical-align: baseline;'), 'http://uk.coop/')
              One Click Digital Platform
            - else
              = image_tag('oco-logo-48.png', :height => '48', :width => '48', :alt => 'One Click Orgs logo')
              One Click Orgs
        - 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;'}
            = yield(:lightbox)
        %div.footer
          = render(:partial => 'shared/footer')
      = get_satisfaction_widget