The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
823 B

  1. # frozen_string_literal: true
  2. class AboutController < ApplicationController
  3. before_action :set_body_classes
  4. def index
  5. @description = Setting.site_description
  6. end
  7. def more
  8. @description = Setting.site_description
  9. @extended_description = Setting.site_extended_description
  10. @contact_account = Account.find_local(Setting.site_contact_username)
  11. @contact_email = Setting.site_contact_email
  12. @user_count = Rails.cache.fetch('user_count') { User.count }
  13. @status_count = Rails.cache.fetch('local_status_count') { Status.local.count }
  14. @domain_count = Rails.cache.fetch('distinct_domain_count') { Account.distinct.count(:domain) }
  15. end
  16. def terms; end
  17. private
  18. def set_body_classes
  19. @body_classes = 'about-body'
  20. end
  21. end