Sha256: 7e94ba0d33fc83adf46508c9229b2981c99cc0d67124218462c9918d8094dbc4

Contents?: true

Size: 1.45 KB

Versions: 6

Compression:

Stored size: 1.45 KB

Contents

<div style="margin: 20px; padding: 0 0 20px 0;">

  <h2 style="margin: 0px; padding: 10px 10px 5px 10px; background: #eee; border-left: 10px solid #ccc; color: #333;">
    <%= 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]
      when 'source_control'
        [:scm,:released,: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 style="margin: 10px; padding: 0px;">
          <span style="float:left; width:150px; padding: 10px 10px 0;"><%= key.to_s.titleize %></span>
          <span style="float:left; width:490px; padding: 10px 10px 0;"><%= data[key].is_a?(Array) ? data[key].to_sentence : data[key].is_a?(String) ? data[key] : data[key].inspect %></span>
        </p>
      <% end -%>
    <% end -%>
  <% end -%>
  <p style="clear:both"></p>
  
</div>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
pboling-capistrano_mailer-3.0.1 views/cap_mailer/_section.html.erb
pboling-capistrano_mailer-3.0.2 views/cap_mailer/_section.html.erb
pboling-capistrano_mailer-3.1.0 views/cap_mailer/_section.html.erb
capistrano_mailer-3.1.6 views/cap_mailer/_section.html.erb
capistrano_mailer-3.1.5 views/cap_mailer/_section.html.erb
capistrano_mailer-3.1.4 views/cap_mailer/_section.html.erb