<% if @current_category %>
  <h1 class="h1"><%= @current_category.title + " " + t(:list_lower) %></h1>
<% elsif @tag %>
  <h1 class="h1"><%= @tag[I18n.locale] + " " + t(:list_lower) %></h1>
<% else %>
  <h1 class="h1"><%= t('list.link') %></h1>
<% end %>

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

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