Files
old-holivud2/app/views/contracts/_files.html.erb

46 lines
886 B
Plaintext
Raw Normal View History

2020-05-31 22:38:19 +02:00
<% 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 %>
2020-08-20 06:50:51 +02:00
<% photos = release.image_files %>
2020-05-31 22:38:19 +02:00
<% unless photos.empty? %>
<h3>Photos</h3>
<ul>
2020-08-20 06:50:51 +02:00
<% photos.each do |blob| %>
2020-05-31 22:38:19 +02:00
<li>
2020-08-20 06:50:51 +02:00
<%= blob.filename %>
2020-05-31 22:38:19 +02:00
</li>
<% end %>
</ul>
<% end %>
2020-08-20 06:50:51 +02:00
<% videos = release.video_files %>
2020-05-31 22:38:19 +02:00
<% unless videos.empty? %>
<h3>Videos</h3>
<ul>
2020-08-20 06:50:51 +02:00
<% videos.each do |blob| %>
2020-05-31 22:38:19 +02:00
<li>
2020-08-20 06:50:51 +02:00
<%= blob.filename %>
2020-05-31 22:38:19 +02:00
</li>
<% end %>
</ul>
<% end %>
2020-08-20 06:50:51 +02:00
<% other = release.other_files %>
2020-05-31 22:38:19 +02:00
<% unless other.empty? %>
<h3>Other files</h3>
<ul>
2020-08-20 06:50:51 +02:00
<% other.each do |blob| %>
2020-05-31 22:38:19 +02:00
<li>
2020-08-20 06:50:51 +02:00
<%= blob.filename %>
2020-05-31 22:38:19 +02:00
</li>
<% end %>
</ul>
<% end %>