Campaign Type

<%= image_tag("social_media_campaign_icon.png")%><%= "#{campaign.type} Campaign"%>
<% if campaign.social_media? %>

Social Media Platforms

<% campaign.social_media_platforms.in_groups_of(3) do |social_media_platfroms| %>
<% social_media_platfroms.compact.each do |social_media_platfrom| %>
<%= image_tag(social_media_platfrom.image_file_name , class: "ml10")%>

<%= social_media_platfrom.name %>

<% end %>
<% end %> <% else %>

Campaign Talent

<%= campaign.talent.name.try(:titleize) rescue nil %>
<% end %>

Campaign Budget

<% if campaign.social_media? %>

Target Gender

<%= campaign.target_gender%>

Target Age Range

<% end %>

Target Audience Location

<%= campaign.location %>

Campaign Length

<%= "#{campaign.start_date.try(:strftime, '%b %d, %Y')} - #{campaign.end_date.try(:strftime, '%b %d, %Y')}"%>

Comments

<%= campaign.comments.try(:titleize) %>

Campaign Keywords

<%= campaign.keywords.try(:titleize) %>

Uploaded Attachments

<% if campaign.campaign_documents.present? %> <% campaign.campaign_documents.each do |campaign_document| %>
<% if campaign_document.image? %> <%= link_to campaign_document.document.url, data: {lightbox: "campaign-document-image-#{campaign.id}"} do %> <%= image_tag campaign_document.document.url(:thumb) %>  <%= campaign_document.document_file_name %> <% end %> <% else %> <%= link_to campaign_document.document.url, target: "_blank" do %> <%= image_tag get_thumbnail(campaign_document) %>  <%= campaign_document.document_file_name %> <% end %> <% end %>
<% end %> <% else %> No Attachments. <% end %>