Sha256: 5c28963bd23442d5e4e2fe6c47ac63e7321634d7b5412ecc3e5f82a0000f542f

Contents?: true

Size: 511 Bytes

Versions: 13

Compression:

Stored size: 511 Bytes

Contents

require 'action_view/helpers'

module ActionView
  module Helpers
    def navigation_bar(options = {}, &block)
      content_tag options[:tag] || :nav, capture(&block), class: "navigation-bar #{options[:class]}"
    end

    def off_screen(options = {}, &block)
      content_tag :div, capture(&block), class: 'off-screen', id: 'off-screen'
    end

    def furatto_alert(options = {}, &block)
      content_tag :div, class: "alert #{options[:variation]}" do
        capture(&block)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
furatto-1.5.0 lib/furatto_rails_helpers/furatto_helpers.rb
furatto-1.4.0 lib/furatto_rails_helpers/furatto_helpers.rb
furatto-1.3.7 lib/furatto_rails_helpers/furatto_helpers.rb
furatto-1.2.7 lib/furatto_rails_helpers/furatto_helpers.rb
furatto-1.2.6 lib/furatto_rails_helpers/furatto_helpers.rb
furatto-1.2.5 lib/furatto_rails_helpers/furatto_helpers.rb
furatto-1.1.5 lib/furatto_rails_helpers/furatto_helpers.rb
furatto-1.0.5 lib/furatto_rails_helpers/furatto_helpers.rb
furatto-1.0.4 lib/furatto_rails_helpers/furatto_helpers.rb
furatto-1.0.3 lib/furatto_rails_helpers/furatto_helpers.rb
furatto-1.0.2 lib/furatto_rails_helpers/furatto_helpers.rb
furatto-1.0.1 lib/furatto_rails_helpers/furatto_helpers.rb
furatto-1.0.0 lib/furatto_rails_helpers/furatto_helpers.rb