myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2470] branches/discovery/app/views: switched tab


From: noreply
Subject: [myexperiment-hackers] [2470] branches/discovery/app/views: switched table views for workflows, files and packs to use cached viewings and downloads counts
Date: Tue, 13 Jul 2010 10:07:27 -0400 (EDT)

Revision
2470
Author
dgc
Date
2010-07-13 10:07:26 -0400 (Tue, 13 Jul 2010)

Log Message

switched table views for workflows, files and packs to use cached viewings and downloads counts

Modified Paths

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? %>

reply via email to

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