<% title "#{params[:option].titleize} Overview" %>

<style>
  <% cache(cache_key_heroku_slug("partnership-org-section-credits"), expires_in: 10.hours) do %>
    <%= Rails.application.assets["partnerships.css"].to_s.html_safe %>
  <% end %>
</style>

<div class="partnerships-container partnerships-container-show">
  <p><a href="/partnerships">👈 back to partnerships list</a></p>
  <% if params[:option] == "gold-sponsor" %>
    <%= render "gold_sponsor_copy" %>
  <% elsif params[:option] == "silver-sponsor" %>
    <%= render "silver_sponsor_copy" %>
  <% elsif params[:option] == "bronze-sponsor" %>
    <%= render "bronze_sponsor_copy" %>
  <% elsif params[:option] == "tag-sponsor" %>
    <%= render "tag_sponsor_copy" %>
  <% elsif params[:option] == "media-sponsor" %>
    <%= render "media_sponsor_copy" %>
  <% elsif params[:option] == "devrel-consult" %>
    <%= render "devrel_consult_copy" %>
  <% end %>
  <% if user_signed_in? %>
    <%= render "form", level: params[:option].split("-")[0], organizations: @organizations %>
  <% else %>
    <div class="partner-credits-explainer">
      <a href="/enter">Sign in to get started</a>
    </div>
  <% end %>
</div>
