Sha256: 962bebc1823112874621c6ddcd97a9f284a4c61b6fecf37a26fad603a1ea05f7
Contents?: true
Size: 1.32 KB
Versions: 15
Compression:
Stored size: 1.32 KB
Contents
<div style="padding-bottom:10px;padding-top:5px;"> <table style="width:100%;"> <tr> <td style="text-align:left; vertical-align:top;font-size:11px; font-family:arial;"> <% entry_name = options[:subject] || (collection.empty? ? 'entry' : collection.first.class.name.underscore.gsub('_', ' ')) output = "" if collection.num_pages < 2 case collection.size when 0 output = tr("None found", "Paginator message", {}, options) when 1 output = tr("Displaying [bold: 1] #{entry_name}", "Paginator message", {}, options) else output = tr("Displaying [bold: all {count}] #{entry_name.pluralize}", "Paginator message", {:count => collection.size}, options) end else output = tr("Displaying #{entry_name.pluralize} [bold: {start_num} - {end_num}] of [bold: {total_count}] in total", "Paginator message", { :start_num => collection.offset_value + 1, :end_num => collection.offset_value + collection.length, :total_count => collection.total_count }, options ) end %> <%= output %> </td> <td style="text-align:right; vertical-align:top; font-size:11px; font-family:arial;"><%= paginate(collection) %></td> </tr> </table> </div>
Version data entries
15 entries across 15 versions & 2 rubygems