Sha256: b370e0165ca57c9fd4b15ae19ed411da018189416924f4e33d4408a028fd9edf
Contents?: true
Size: 1.31 KB
Versions: 11
Compression:
Stored size: 1.31 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_num + 1, :end_num => collection.offset_num + collection.length, :total_count => collection.total_num }, 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
11 entries across 11 versions & 1 rubygems