diff --git a/app/views/admin/communication/blocks/templates/files/_preview.html.erb b/app/views/admin/communication/blocks/templates/files/_preview.html.erb
index 4d72187e5486d77ad39904ce7f0bf0574eabc5ae..a79859be33e3df7d10e5e7d3408151aa73015e31 100644
--- a/app/views/admin/communication/blocks/templates/files/_preview.html.erb
+++ b/app/views/admin/communication/blocks/templates/files/_preview.html.erb
@@ -25,17 +25,14 @@ end
         <% @block.template.elements.each do |element| %>
           <% next unless element.blob %>
           <li>
-          <figure>
+            <figure>
               <a href="<%= element.blob.url %>" target="_blank" title="<%= element.title %>"><%= element.title %></a>
-              <% if document.file.attached? %>
-                <% file = document.file %>
                 <figcaption>
-                  <abbr title=""><%= file.filename.extension.upcase %></abbr>
-                  - <abbr title=""><%= number_to_human_size file.byte_size %></abbr>
+                  <abbr title=""><%= element.blob.filename.extension.upcase %></abbr>
+                  - <abbr title=""><%= number_to_human_size element.blob.byte_size %></abbr>
                 </figcaption>
-              <% end %>
+              </a>
             </figure>
-            </a>
           </li>
         <% end %>
       </ul>