[116850] branches/gsoc11-statistics/stats-server/app/views/ports/index.html .erb
Revision: 116850 https://trac.macports.org/changeset/116850 Author: cal@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| %>
participants (1)
-
cal@macports.org