class PlatformsController < ApplicationController
  def index
    @platforms = Project.popular_platforms
  end

  def show
    find_platform
    @updated = Project.search('*', filters: {platform: @platform_name}, sort: 'latest_release_published_at').records.includes(:github_repository).many_versions.first(5)
    @created = Project.search('*', filters: {platform: @platform_name}, sort: 'created_at').records.includes(:github_repository).few_versions.first(5)
    @watched = Project.platform(@platform_name).most_watched.limit(4)

    @color = @platform.color
  end
end

class PlatformsController < ApplicationController
  def index
    @platforms = Project.popular_platforms
  end

  def show
    find_platform
    @updated = Project.search('*', filters: {platform: @platform_name}, sort: 'latest_release_published_at').records.includes(:github_repository).first(5)
    @created = Project.search('*', filters: {platform: @platform_name}, sort: 'created_at').records.includes(:github_repository).first(5)
    @watched = Project.platform(@platform_name).most_watched.limit(4)

    @color = @platform.color
  end
end

Revert "Make sure new and updated look different"
Revert "Make sure new and updated look different"

This reverts commit f89c97bd019c07b178c5dd7a78d8b91c8e8603c8.
