Sha256: fe86a5b9265314c06c5b6a1cf0e98ed19be6fb22bc9156ddb4a6b2678e416463
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
<div class="section"> <h2><%= section_title.titleize unless section_title.nil? -%></h2> <% if data.is_a?(Array) then data = data[0] end -%> <% arr = case section_title when 'deployment' [:date,:time,:rails_env,:task_name,:inferred_command,:host,:release_name,:release_notes] when 'source_control' [:scm,:released,:branch,:revision,:deploy_via,:deploy_to,:repository] when 'latest_release' [:latest_release,:latest_revision,:real_revision,:release_path,:current_path] when 'previous_release' [:current_release,:current_revision,:previous_release,:previous_revision,:releases] when 'other_deployment_info' [:ip_address,:run_method,:source,:strategy,:version_dir,:shared_dir,:current_dir,:releases_path,:shared_path] end -%> <% if !arr.nil? && arr.is_a?(Array) %> <% arr.each do |key| -%> <% if key.is_a?(Symbol) && !data[key].nil?-%> <p class="data-item"> <span class="key"><%= key.to_s.titleize %></span> <span class="value"><%= data[key].is_a?(Array) ? data[key].try(:to_sentence) : data[key].is_a?(String) ? data[key].gsub(/\n/, '<br>').gsub(/\n/, '<br>').html_safe : data[key].inspect.html_safe %></span> </p> <% end -%> <% end -%> <% end -%> <p style="clear:both"></p> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano_mailer-4.1.0.pre1 | views/cap_mailer/_section.html.erb |