Diff
Modified: branches/rails2/app/views/blobs/_table.rhtml (2757 => 2758)
--- branches/rails2/app/views/blobs/_table.rhtml 2011-10-24 21:06:59 UTC (rev 2757)
+++ branches/rails2/app/views/blobs/_table.rhtml 2011-10-24 21:07:27 UTC (rev 2758)
@@ -79,7 +79,7 @@
<p style="font-size:85%;"><b>File type: </b><%= h blob.content_type.title %></p>
<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) + '#ratings' -%>"><b>Rating: </b><%= number_with_precision(blob.rating, :precision => 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 blob.contribution.site_viewings_count, "time" %> |
<b>Downloaded:</b> <%=pluralize blob.contribution.site_downloads_count, "time" %>
Modified: branches/rails2/app/views/ratings/_current.rhtml (2757 => 2758)
--- branches/rails2/app/views/ratings/_current.rhtml 2011-10-24 21:06:59 UTC (rev 2757)
+++ branches/rails2/app/views/ratings/_current.rhtml 2011-10-24 21:07:27 UTC (rev 2758)
@@ -3,9 +3,9 @@
Current:
</p>
<p style="font-size: 123.1%; font-weight: bold; padding-bottom: 0.2em; line-height: 1;">
- <%= number_with_precision(rateable.rating, 1) %> / 5
+ <%= number_with_precision(rateable.rating, :precision => 1) %> / 5
</p>
<p style="font-size: 85%; padding-top: 0.2em; line-height: 1;">
(<%= pluralize rateable.ratings.count, 'rating' %>)
</p>
-</div>
\ No newline at end of file
+</div>
Modified: branches/rails2/app/views/ratings/_rating.rhtml (2757 => 2758)
--- branches/rails2/app/views/ratings/_rating.rhtml 2011-10-24 21:06:59 UTC (rev 2757)
+++ branches/rails2/app/views/ratings/_rating.rhtml 2011-10-24 21:07:27 UTC (rev 2758)
@@ -1,6 +1,6 @@
<ul class='star-rating'>
<li class='current-rating' style="width:<%= (rateable.rating * 30).to_i -%>px; border: none; padding: 0; margin: 0;">
- Currently <%= number_with_precision(rateable.rating, 0) %>/5 Stars.
+ Currently <%= number_with_precision(rateable.rating, :precision => 0) %>/5 Stars.
</li>
<li style="border: none; padding: 0; margin: 0;">
<%= link_to_remote( "1", {:url ="" { :controller => controller.to_s,
@@ -29,4 +29,4 @@
</li>
</ul>
-<%= render :partial => 'ratings/current', :locals => { :rateable => rateable } %>
\ No newline at end of file
+<%= render :partial => 'ratings/current', :locals => { :rateable => rateable } %>
Modified: branches/rails2/app/views/users/show.rhtml (2757 => 2758)
--- branches/rails2/app/views/users/show.rhtml 2011-10-24 21:06:59 UTC (rev 2757)
+++ branches/rails2/app/views/users/show.rhtml 2011-10-24 21:07:27 UTC (rev 2758)
@@ -261,7 +261,7 @@
<b><%= h @user.name -%> has an average rating of:</b>
</p>
<p style="font-size: 123.1%; font-weight: bold; padding-bottom: 0.2em; line-height: 1;">
- <%= number_with_precision(avg_rating, 1) -%> / 5
+ <%= number_with_precision(avg_rating, :precision => 1) -%> / 5
</p>
<p style="font-size: 77%; padding-top: 0.2em; line-height: 1;">
(<%= pluralize rating_count, "rating" -%> in total)
Modified: branches/rails2/app/views/workflows/_table.rhtml (2757 => 2758)
--- branches/rails2/app/views/workflows/_table.rhtml 2011-10-24 21:06:59 UTC (rev 2757)
+++ branches/rails2/app/views/workflows/_table.rhtml 2011-10-24 21:07:27 UTC (rev 2758)
@@ -98,7 +98,7 @@
<div style="clear: both"></div>
<p style="font-size: 85%;">
- <a href="" workflow_path(workflow) + '#ratings' -%>"><b>Rating: </b><%= number_with_precision(workflow.rating, 1) %> / 5 (<%= pluralize workflow.ratings.count, 'rating' %>)</a> |
+ <a href="" workflow_path(workflow) + '#ratings' -%>"><b>Rating: </b><%= number_with_precision(workflow.rating, :precision => 1) %> / 5 (<%= pluralize workflow.ratings.count, 'rating' %>)</a> |
<a href="" workflow_path(workflow) + '#versions' -%>"><b>Versions: </b><%= workflow.versions.count %></a> |
<a href="" workflow_path(workflow) + '#reviews' -%>"><b>Reviews: </b><%= workflow.reviews.count %></a> |
<a href="" workflow_path(workflow) + '#comments' -%>"><b>Comments: </b><%= workflow.comments.count %></a> |