Sha256: da42fccdcf01c11696ae2127e468b2ca5fb747c9d05541803ba2363ff01de9b4

Contents?: true

Size: 739 Bytes

Versions: 5

Compression:

Stored size: 739 Bytes

Contents

.tabs
  %ul
    - tabs.each do |tab|
      %li
        = link_to(tab[:url], :class => tab[:active] ? "active" : nil) do
          - unless request.fullpath.include?("/admin")
            - img_base_path = "tab_icons/#{tab[:text].to_s.downcase.sub(/^tab_/, '')}"
            - if Rails.application.assets.find_asset("#{img_base_path}.png")
              = image_tag("#{img_base_path}#{tab[:active] ? "_active" : ""}.png")
          = t(tab[:text])

= show_flash
%table{ :width => "100%", :height => "100%", :cellpadding => 0, :cellspacing => 0, :class => :tabbed }
  %tr
    %td{ :class => :sidebar, :id => :sidebar, :valign => :top }
      = render "layouts/sidebar"
    %td{ :class => :main, :id => :main, :valign => :top }
      = yield

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fat_free_crm-0.12.3 app/views/layouts/_tabbed.html.haml
fat_free_crm-0.12.2 app/views/layouts/_tabbed.html.haml
fat_free_crm-0.12.1 app/views/layouts/_tabbed.html.haml
fat_free_crm-0.12.0 app/views/layouts/_tabbed.html.haml
fat_free_crm-0.11.4 app/views/layouts/_tabbed.html.haml