<% content_for :top_field do%> <%= render 'search_bar' %> <% end %>
<% @attach_array.each do |k|%>

<%= @str_arr.shift %>

<%=l(:label_attachment)%>
<%=l(:field_downloads)%>
<%=l(:button_download)%>
<% k.each do |c1|%>
<%= link_to c1.filename, (attachFromUrl c1), {:title => c1.filename, :target => "_blank"} %>
<%= c1.downloads %>
<%= link_to_attachment c1, {:download => true, :text => image_tag("/images/button/download.png", width: "22px", alt: l(:button_download)) }%>
<% end -%>
<% end; reset_cycle %>