Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
トップ: 人気まとめを新着まとめに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
YOSHIDA Hiroki committed Jan 8, 2014
1 parent 796ce99 commit 73ddd3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class HomeController < ApplicationController
def index
@clips = Clip.paginate(page: params[:page]).includes([ { image: :likes, comments: :user }, :user, :likes, :tags ])
@hot_tags = Tag.hot(50).shuffle
@hot_matomes = Matome.hot(5).all
@new_matomes = Matome.limit(5).all
render action: 'next_page' unless first_page?
end

Expand Down
4 changes: 2 additions & 2 deletions app/views/home/index.html.slim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#home
.matomes
h2 人気まとめ
== render partial: 'base/matomes', locals: { matomes: @hot_matomes }
h2 新着まとめ
== render partial: 'base/matomes', locals: { matomes: @new_matomes }

.tags
h2 人気タグ
Expand Down

0 comments on commit 73ddd3f

Please sign in to comment.