<% # encoding: utf-8 %>

<%= flash_messages %>

<%#= paginate @archive_files, :params => {:inner => false}%>

<% if @title %>
	<h1 class="h1"><%= @title %></h1>
<% end %>
	
	<ul class="subm">
	<% @archive_file_categorys.each do |afcpost| %>
		<li><%= link_to afcpost.title, panel_archive_front_end_archive_files_path(:category_id => afcpost.id) %></li>
	<% end %>
	</ul>
	
	<h3><%= @archive_files.first.archive_file_category.title rescue nil %></h3>
	
	<% @archive_files.each do |post| %>
	
	<%= link_to post.title, panel_archive_front_end_archive_file_path(post, :category_id => post.archive_file_category_id) %>
	
	<ol>
		<% post.archive_file_multiples.each do | afile |  %>	
			<%  if afile.file.file and afile.choose_lang_display(I18n.locale.to_s) %>
				<li><%= link_to afile.file_title, afile.file.url, {:target => '_blank', :title => afile.file_title} %></li>
			<% end %>
		<% end %>
	</ol>
	  
	<% end %>
