Module: Glengarry::ApplicationHelper

Defined in:
app/helpers/glengarry/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#pagination_countObject



3
4
5
6
7
8
# File 'app/helpers/glengarry/application_helper.rb', line 3

def pagination_count
  count = content_for(:email_count).to_i
  phrase = count < 10 ? "Showing #{count} of #{count}" : "Showing 10 of #{count}"
  return phrase if content_for?(:email_count)
  "No Leads Yet"
end