Sha256: 39c74d4aaf8023ee071e0233a9a62727d4c7dbc8886625160dc577bde15678fe

Contents?: true

Size: 433 Bytes

Versions: 10

Compression:

Stored size: 433 Bytes

Contents

module Plutonium
  module UI
    module DynaFrame
      class Content < Plutonium::UI::Component::Base
        include Phlex::Rails::Helpers::TurboFrameTag

        def view_template
          if current_turbo_frame.present?
            render turbo_frame_tag(current_turbo_frame) {
              render "flash"
              yield
            }
          else
            yield
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
plutonium-0.15.6 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.15.5 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.15.4 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.15.3 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.15.2 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.15.1 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.15.0 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.15.0.pre.rc3 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.15.0.pre.rc2 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.15.0.pre.rc1 lib/plutonium/ui/dyna_frame/content.rb