<% if @ext == 'pdf' %> <%= render partial: 'archives/viewer' %> <% else %> <%=@filename%> <%= stylesheet_link_tag "archive/download_file.css" %>

<%=@filename%>

<% if @ext != "png" && @ext != "jpg" && @ext != "bmp" %> <%=@filename%> <% else %> <%=@filename%> <% end %> <% end %>