<% # encoding: utf-8 %>

<%= flash_messages %>

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


  <table class="table">
    <thead>
      <tr>
		<th class="grid1"><%= t('personal_journal.year') %></th>
		<th class="grid8"><%= t('module_name.personal_journal') %></th>
		<th class="grid3"><%= t('personal_journal.authors') %></th>
  	  </tr>
    </thead>
    <tbody>

  	<% @writing_journals.each do |writing_journal| %>	
  			
      <tr>
		<td><%= writing_journal.year %></td>
		<td>
		<%= link_to writing_journal.create_link, panel_personal_journal_front_end_writing_journal_path(writing_journal) %>
		</td>
		<td><%= User.find(writing_journal.create_user_id).name rescue '' %></td>
  	  </tr>		
  		
    <% end %> 

    </tbody>
  </table>


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