<% # encoding: utf-8 %>

<%= flash_messages %>

<h1><%= t('module_name.personal_patent') %></h1>

  <table class="table">
    <thead>
      <tr>
		<th class="grid2"><%= t('personal_patent.year') %></th>
		<th class="grid2"><%= t('personal_patent.patent_category') %></th>
		<th class="grid2"><%= t('personal_patent.publication_date') %></th>
		<th class="grid10"><%= t('personal_patent.patent_title') %></th>
		<th class="grid10"><%= t('personal_patent.authors') %></th>
	  </tr>
    </thead>
    <tbody>
  		
  	<% @writing_patents.each do |writing_patent| %>	
  			
      <tr>
		<td><%= writing_patent.year %></td>
		<td><%= writing_patent.writing_patent_category.title %></td>
		<td>
  		<%= link_to writing_patent.patent_title, panel_personal_patent_front_end_writing_patent_path(writing_patent) %>
		</td>
		<td><%= writing_patent.publish_date.strftime("%Y.%m") %></td>
		<td><%= "#{User.from_id(writing_patent.create_user_id).name rescue ''},#{writing_patent.authors rescue ''}"%></td>
  	  </tr>		
  		
  	<% end %>	

    </tbody>
  </table>


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