Sha256: fd189ac2bc0b0c845ddd0dd2c9fa4c9e2ce82f4c38f03f6421ba523c9c50e2d9

Contents?: true

Size: 855 Bytes

Versions: 1

Compression:

Stored size: 855 Bytes

Contents

module Catarse
class StaticController < BaseController
  def guidelines
    @title = t('catarse.static.guidelines.title')
  end

  def guidelines_tips
    @title = t('catarse.static.guidelines_tips.title')
  end

  def faq
    @title = t('catarse.static.faq.title')
  end

  def sitemap
    # TODO: update this sitemap to use new homepage logic
    @home_page = Project.includes(:user, :category).visible.limit(6).all
    @expiring = Project.includes(:user, :category).visible.expiring.not_expired.order('expires_at, created_at DESC').limit(3).all
    @recent = Project.includes(:user, :category).visible.not_expiring.not_expired.where("projects.user_id <> 7329").order('created_at DESC').limit(3).all
    @successful = Project.includes(:user, :category).visible.successful.order('expires_at DESC').limit(3).all
    return render 'sitemap'
  end

end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
catarse_core-1.0.0.beta app/controllers/catarse/static_controller.rb