Modified: trunk/app/views/content_types/index.rhtml (2629 => 2630)
--- trunk/app/views/content_types/index.rhtml 2011-07-06 13:35:32 UTC (rev 2629)
+++ trunk/app/views/content_types/index.rhtml 2011-07-06 13:44:23 UTC (rev 2630)
@@ -15,6 +15,7 @@
<thead>
<tr>
<td>Title</td>
+ <td>Count</td>
<td>Category</td>
</tr>
</thead>
@@ -22,6 +23,7 @@
<% @content_types.each do |ct| %>
<tr>
<td><%= link_to(h(ct.title), content_type_path(ct)) %></td>
+ <td style="text-align: right"><%= Contribution.count(:conditions => ['content_type_id = ?', ct.id]) -%></td>
<td><%= visible_name(ct.category) %></td>
<% end %>
</tbody>