myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2630] trunk/app/views/content_types/index.rhtml:


From: noreply
Subject: [myexperiment-hackers] [2630] trunk/app/views/content_types/index.rhtml: added totals to content_types index
Date: Wed, 6 Jul 2011 09:44:23 -0400 (EDT)

Revision
2630
Author
dgc
Date
2011-07-06 09:44:23 -0400 (Wed, 06 Jul 2011)

Log Message

added totals to content_types index

Modified Paths

Diff

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>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]