Skip to content
Snippets Groups Projects
Commit 8ea7e9e0 authored by Olivia206's avatar Olivia206
Browse files

Preview block files

parent c2aebeb1
No related branches found
No related tags found
No related merge requests found
<%= block_component_preview :image %>
<div class="small">
<p class="mb-0">
<%= block_component_preview :alt %>
</p>
<%= block_component_preview :credit %>
<div class="chapter">
<div>
<%= block_component_preview :text %>
</div>
<div class="notes">
<%= block_component_preview :notes %>
</div>
</div>
<%= block_component_preview :text %>
<%= block_component_preview :notes %>
<figure>
<%= block_component_preview :image %>
<figcaption>
<%= block_component_preview :credit %>
</figcaption>
</figure>
<%= block_component_preview :description %>
<div class="description">
<%= block_component_preview :description %>
</div>
<ul>
<% @block.template.elements.each do |element| %>
<% next unless element.blob %>
<li>
<a href="<%= element.blob.url %>" download>
<%= element.title %>
<small>(<%= element.blob.filename %>)</small>
<a href="<%= element.blob.url %>" download="{{ partial 'PrepareHTML' $file.name }}" target="_blank" title="{{ i18n 'commons.link.blank_aria' (dict 'Title' $title_with_size) }}">
<span><%= element.title %><br><span>(<%= element.blob.filename %>)</span></span>
</a>
</li>
<% end %>
</ul>
</ul>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment