<% # encoding: utf-8 %>

<%= flash_messages %>

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


 

  <table class="table">
    <thead>
      <tr>
		<th class="grid1"><%= t('personal_book.year') %></th>
		<th class="grid1"><%= t('personal_book.book_paper_type') %></th>
        <th class="grid8"><%= t('personal_book.book_title') %></th>
		<th class="grid3"><%= t('personal_book.authors') %></th>
	 </tr>
    </thead>
    <tbody>
  		
  	<% @writing_books.each do |writing_book| %>	
  			
      <tr>
        <td><%= writing_book.year %></td>
        <td><%= writing_book.book_paper_type.title %></td>
		<td>
		<%= link_to writing_book.create_link, panel_personal_book_front_end_writing_book_path(writing_book) %>
		</td>
        <td><%= User.find(writing_book.create_user_id).name rescue '' %></td>
  		</tr>		
  		
  	<% end %>	

    </tbody>
  </table>


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