<% # 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">
	<tbody>
		<tr>
			<th class="span2"><%= t('news.news_bulletin.image') %></th>
			<th><%= t('news.news_bulletin.title') %></th>
			<th class="span2 pagination-right"><%= t('news.news_bulletin.postdate') %></th>
		</tr>
		<% @news_bulletins.each do |post| %>
		<tr>
			<td><%= image_tag post.image %></td>
			<td>
				<%= link_to post.title[I18n.locale], panel_news_front_end_news_bulletin_path(post), :class => 'news_title' %>
				<%= post.subtitle[I18n.locale].html_safe %>
			</td>
			<td><%= post.postdate %></td>
		</tr>
		<% end %> 
	</tbody>
</table>

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

