[116850] branches/gsoc11-statistics/stats-server/app/views/ports/index.html .erb
cal at macports.org
cal at macports.org
Sat Feb 8 08:16:47 PST 2014
Revision: 116850
https://trac.macports.org/changeset/116850
Author: cal at macports.org
Date: 2014-02-08 08:16:46 -0800 (Sat, 08 Feb 2014)
Log Message:
-----------
macports stats: fix pagination output on the last page
Modified Paths:
--------------
branches/gsoc11-statistics/stats-server/app/views/ports/index.html.erb
Modified: branches/gsoc11-statistics/stats-server/app/views/ports/index.html.erb
===================================================================
--- branches/gsoc11-statistics/stats-server/app/views/ports/index.html.erb 2014-02-08 16:16:10 UTC (rev 116849)
+++ branches/gsoc11-statistics/stats-server/app/views/ports/index.html.erb 2014-02-08 16:16:46 UTC (rev 116850)
@@ -2,7 +2,7 @@
<h2>Query Results</h2>
<% unless @ports.empty? %>
- <p><strong><%= ((@page.to_i - 1) * 50) + 1 %></strong> - <strong><%= @page.to_i * 50 %></strong> of <%= Port.count %> Portfiles selected</p>
+ <p>Displaying results <strong><%= ((@page.to_i - 1) * 50) + 1 %></strong> - <strong><%= [@ports.count, @page.to_i * 50].min %></strong> of <%= @ports.count %> total.</p>
<p><%= will_paginate @ports %></p>
<% @ports.each do |port| %>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140208/156308a6/attachment.html>
More information about the macports-changes
mailing list