Sha256: c81f00059b4135a071eb792076d10de516eb8fcc5ade59753c7e16418ecffa48

Contents?: true

Size: 1.58 KB

Versions: 10

Compression:

Stored size: 1.58 KB

Contents

!!!5
%html
  %head
    %meta{ "http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
    %title Fat Free CRM
    == <!-- #{controller.controller_name} : #{controller.action_name} -->
    = stylesheet_link_tag :application
    = stylesheet_link_tag :print, :media => 'print'
    = hook(:stylesheet_includes, self) do
      #{yield :stylesheet_includes}
    %style= yield :styles

    = javascript_include_tag :application

    - unless tabless_layout? || %w(en-US en-GB).include?(I18n.locale.to_s)
      = javascript_include_tag "jquery_ui_datepicker/jquery.ui.datepicker-#{I18n.locale}"
      = javascript_include_tag "jquery_ui_datepicker/jquery-ui-timepicker-#{I18n.locale}"

    = csrf_meta_tag
    = hook(:javascript_includes, self)

    :javascript
      crm.language = "#{I18n.locale}"
      window.controller = "#{controller.controller_name}"

    - if current_user.present?
      :javascript
        #{yield :javascript}
        var _ffcrm_users = [
        #{User.all.map{|u| "\"#{j u.full_name} (@#{j u.username})\"" }.join(",\n")}
        ];

    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <link rel="icon" href="/favicon.ico" type="image/x-icon">

  %body
    = render "layouts/header"
    - if tabless_layout?
      = render "layouts/tabless"
    - else
      = render "layouts/tabbed"
      = render "layouts/footer"

    %script{:type => "text/javascript"}
      = "crm.base_url = '#{Setting.base_url}';" unless Setting.base_url.blank?
      = get_browser_timezone_offset
      = content_for :javascript_epilogue
      = hook(:javascript_epilogue, self)

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/layouts/application.html.haml
fat_free_crm-0.14.1 app/views/layouts/application.html.haml
fat_free_crm-0.15.0.beta.2 app/views/layouts/application.html.haml
fat_free_crm-0.15.0.beta app/views/layouts/application.html.haml
fat_free_crm-0.14.0 app/views/layouts/application.html.haml
reduced_fat_crm-0.15.0.beta app/views/layouts/application.html.haml
reduced_fat_crm-0.14.0 app/views/layouts/application.html.haml
fat_free_crm-0.13.6 app/views/layouts/application.html.haml
fat_free_crm-0.13.5 app/views/layouts/application.html.haml
fat_free_crm-0.13.4 app/views/layouts/application.html.haml