# File lib/deltacloud/helpers/application_helper.rb, line 224 def header(title, opts={}, &block) opts[:theme] ||= 'b' opts[:back] ||= 'true' capture_haml do haml_tag :div, 'data-role''data-role' => :header, 'data-theme''data-theme' => opts[:theme], 'data-add-back-btn''data-add-back-btn' => opts[:back] do haml_tag :a, 'data-rel''data-rel' => :back do haml_concat "Back" end if opts[:back] == 'true' haml_tag :h1 do haml_concat title end block.call if block_given? end end end