<% # encoding: utf-8 %>

<%= flash_messages %>

<% if @current_category %>
	<h1 class="h1"><%= @current_category.i18n_variable[I18n.locale] + t('news.news_bulletin.list_lower') %></h1>
<% else %>
	<h1 class="h1"><%= t('news.list_news') %></h1>
<% end %>


<table class="table table-bordered">
  <tr>
	<th><%= t('news.news_bulletin.category') %></th>
	<th><%= t('news.news_bulletin.title') %></th>
	<th><%= t('news.news_bulletin.postdate') %></th>
  </tr>

<% @news_bulletins.each do |post| %>
  <tr>
	<td><%= post.news_bulletin_category.i18n_variable[I18n.locale] %></td>
	<td><%= link_to post.title[I18n.locale], panel_news_front_end_news_bulletin_path(post) %>
	<%#= link_to post.title, panel_news_back_end_news_bulletin_path(post) %>
	</td>
	<td><%= post.postdate %></td>
  </tr>
  
<% end %>

</table>

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

