Sha256: 649fec329a0d79322a858955a32567dbf6b0481d9875843df3b8582aaf8c76e0
Contents?: true
Size: 1 KB
Versions: 3
Compression:
Stored size: 1 KB
Contents
format :html do view :flash, cache: :never, unknown: true, perms: :none do flash_notice = params[:flash] || Env.success.flash return "" unless flash_notice.present? && focal? Array(flash_notice).join "\n" end def frame &block standard_frame(&block) end def standard_frame slot=true, &block with_frame slot do wrap_body(&block) if block_given? end end def with_frame slot=true, header=frame_header, slot_opts={} voo.hide :help add_name_context wrap slot, slot_opts do panel do [header, frame_help, render_flash, (yield if block_given?)] end end end def frame_header _render_header end def frame_help with_class_up "help-text", "alert alert-info" do _render :help end end def panel &block wrap_with :div, class: classy("d0-card-frame"), &block end private def frame_and_form action, form_opts={}, &block form_opts ||= {} frame do card_form action, form_opts, &block end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
card-mod-format-0.18.1 | set/all/html/frame.rb |
card-mod-format-0.18.0 | set/all/html/frame.rb |
card-mod-format-0.17.0 | set/all/html/frame.rb |