<div id="issues">
<% if attachments_results.nil? || attachments_results.try(:size).to_i < 0 %>
<% else %>
<hr />
	<% attachments_results.each do |file| %>
	<p class="font_description2">
		<table border=0 cellSpacing=0 cellPadding=0 style="width: 100%;table-layout: fixed;">
		  <tbody>
		  <tr>
		    <td class="r1" style="word-break: break-all;word-wrap: break-word;">
		      <div class="cb">
		      	<strong>
                  <%= l(:label_attachment) %>:
                  &nbsp;&nbsp;
                  <%= file.filename %>
                </strong>
		      	<span style="margin-left: 4px;">
		            <%= link_to_attachment file, {:download => true, :text => image_tag("/images/button/dl.png", width: "70px", alt: l(:button_download), :class => 'download_icon')}%>
		        </span>
		      </div>
		      <strong>
                <%= l(:field_description) %>
              </strong>:
              &nbsp;&nbsp;
              <%= file.description %>
		      <div class="c9 gray-color">
                <%= l('attachment.category')%>：
                <%=result_come_from file%>
              </div>
		      <span class="gray blue-color">
		        <%= l('attachment.download_num')%>：
                <%= file.downloads%>|
		        <%= l('attachment.size')%>：
                <%= number_to_human_size(file.filesize) %>|
		        <%= l('attachment.sharer')%>：
                <a class="gray" >
                    <%= link_to file.author, user_path(file.author), target: "_blank" unless file.author.blank? %>
                </a>|
		        <%= l('attachment.upload_time')%>：
                <%= format_time(file.created_on) %>
		      </span> 
		      <div style="display: none"></div>
		   </td>
		   </tr>
		   </tbody>
		</table>
	</p>
	<div class="line_under"></div>
	<% end %>
<% end %>
</div>
