<% if preview %>
  <h1>PREVIEW ONLY</h1>
<% end %>

<p class="heading"><strong><u>Files</u></strong></p>
  <% unless release.description.blank? %>
    <p>
     Description: <%= release.description %> 
    </p>
  <% end %>
  <% photos = release.image_files %>
  <% unless photos.empty? %>
    <h3>Photos</h3>
    <ul>
    <% photos.each do |blob| %>
      <li>
        <%= blob.filename %> 
      </li>
    <% end %>
    </ul>
  <% end %>

  <% videos = release.video_files %>
  <% unless videos.empty? %>
    <h3>Videos</h3>
    <ul>
    <% videos.each do |blob| %>
      <li>
          <%= blob.filename %> 
      </li>
    <% end %>
    </ul>
  <% end %>

  <% other = release.other_files %>
  <% unless other.empty? %>
    <h3>Other files</h3>
    <ul>
      <% other.each do |blob| %>
        <li>
          <%= blob.filename %> 
        </li>
      <% end %>
    </ul>
  <% end %>
