Diff
Modified: branches/discovery/app/views/blobs/_table.rhtml (2469 => 2470)
--- branches/discovery/app/views/blobs/_table.rhtml 2010-07-12 12:09:35 UTC (rev 2469)
+++ branches/discovery/app/views/blobs/_table.rhtml 2010-07-13 14:07:26 UTC (rev 2470)
@@ -77,8 +77,8 @@
<p style="font-size: 85%;">
<a href="" file_path(blob) + '#ratings' -%>"><b>Rating: </b><%= number_with_precision(blob.rating, 1) %> / 5 (<%= pluralize blob.ratings_count, 'rating' %>)</a> |
<a href="" file_path(blob) + '#comments' -%>"><b>Comments: </b><%= blob.comments_count %></a> |
- <b>Viewed:</b> <%= pluralize Viewing.total_site_viewings_count_for_contribution(blob.contribution.id), "time" %> |
- <b>Downloaded:</b> <%= pluralize Download.total_site_downloads_count_for_contribution(blob.contribution.id), "time" %>
+ <b>Viewed:</b> <%=pluralize blob.contribution.site_viewings_count, "time" %> |
+ <b>Downloaded:</b> <%=pluralize blob.contribution.site_downloads_count, "time" %>
</p>
<% unless (tags = blob.tags).empty? %>
Modified: branches/discovery/app/views/packs/_table.rhtml (2469 => 2470)
--- branches/discovery/app/views/packs/_table.rhtml 2010-07-12 12:09:35 UTC (rev 2469)
+++ branches/discovery/app/views/packs/_table.rhtml 2010-07-13 14:07:26 UTC (rev 2470)
@@ -47,8 +47,8 @@
<p style="font-size: 85%;">
<a href="" pack_path(pack) + '#comments' -%>"><b>Comments: </b><%= pack.comments_count %></a> |
- <b>Viewed:</b> <%= pluralize Viewing.total_site_viewings_count_for_contribution(pack.contribution.id), "time" %> |
- <b>Downloaded:</b> <%= pluralize Download.total_site_downloads_count_for_contribution(pack.contribution.id), "time" %>
+ <b>Viewed:</b> <%=pluralize pack.contribution.site_viewings_count, "time" %> |
+ <b>Downloaded:</b> <%=pluralize pack.contribution.site_downloads_count, "time" %>
</p>
<% unless (tags = pack.tags).empty? %>
Modified: branches/discovery/app/views/workflows/_table.rhtml (2469 => 2470)
--- branches/discovery/app/views/workflows/_table.rhtml 2010-07-12 12:09:35 UTC (rev 2469)
+++ branches/discovery/app/views/workflows/_table.rhtml 2010-07-13 14:07:26 UTC (rev 2470)
@@ -103,8 +103,8 @@
</p>
<p style="font-size: 85%;">
- <b>Viewed:</b> <%=pluralize Viewing.total_site_viewings_count_for_contribution(workflow.contribution.id), "time" %> |
- <b>Downloaded:</b> <%=pluralize Download.total_site_downloads_count_for_contribution(workflow.contribution.id), "time" %>
+ <b>Viewed:</b> <%=pluralize workflow.contribution.site_viewings_count, "time" %> |
+ <b>Downloaded:</b> <%=pluralize workflow.contribution.site_downloads_count, "time" %>
</p>
<% unless (tags = workflow.tags).empty? %>