Sha256: 7b6fb26e258a3a621cd89d778aa54290a35ea208ac30331ee82daf4c56ea5c6b
Contents?: true
Size: 977 Bytes
Versions: 27
Compression:
Stored size: 977 Bytes
Contents
%div{ :style => "position:relative;height:1px;width:1px;display:inline"} %a{ name: group, :style => "display: block; position: absolute; top: -80px; width: 2px; height: 2px" } - if flash[:group] == group - [:notice, :warning, :error, :info].each do |flash_type| - color = nil - color = "green" if flash_type == :notice - color = "red" if flash_type == :error - color = "blue" if flash_type == :info - if flash[flash_type] %div{ class: (color ? "notice notice-#{color}" : "notice") } %button.close{ :'data-dismiss' => "notice" } × %h4.notice-heading = flash[flash_type] - resource = nil unless resource - if resource && resource.errors.any? .notice.notice-red %h4.notice-heading = I18n.t "simple_form.error_notification.default_message" - if resource.errors.any? %ul - resource.errors.full_messages.each do |msg| %li = msg
Version data entries
27 entries across 27 versions & 1 rubygems