<% if @current_category %>
	<h1 class="h1"><%= @current_category.i18n_variable[I18n.locale] + " " + t('web_resource.list_lower') %></h1>
<% elsif @tag %>
	<h1 class="h1"><%= @tag[I18n.locale] + " " + t('web_resource.list_lower') %></h1>
<% else %>
	<h1 class="h1"><%= t('web_resource.list_link') %></h1>
<% end %>

<table class="table table-bordered">
	<tbody>
	  <tr>
			<th><%= t('web_resource.category') %></th>
			<th><%= t('web_resource.name') %></th>
	  </tr>
		<% @web_links.each do |post| %>
		  <tr>
				<td><%= post.web_link_category.i18n_variable[I18n.locale] rescue nil %></td>
				<td>
					<%= link_to post.name[I18n.locale], post.url, {:target => '_blank', :title => post.name[I18n.locale]} %>
				</td>
		  </tr>
		<% end %>
	</tbody>
</table>

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