<h1><%= _("Listing articles") %></h1>

<table>
  <tr>
  <% for column in Article.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  </tr>
  
<% for article in @articles %>
  <tr>
  <% for column in Article.content_columns %>
    <td><%=h article.send(column.name) %></td>
  <% end %>
    <td><%= link_to _('Show'), :action => 'show', :id => article %></td>
    <td><%= link_to _('Edit'), :action => 'edit', :id => article %></td>
    <td><%= link_to _('Destroy'), { :action => 'destroy', :id => article }, :confirm => _('Are you sure?'), :method => :post %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to _('New article'), :action => 'new' %>
<br />
