Add workouts
This commit is contained in:
18
app/views/workouts/index.rb
Normal file
18
app/views/workouts/index.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
module Adamantium
|
||||
module Views
|
||||
module Workouts
|
||||
class Index < View
|
||||
include Deps["repos.workout_repo"]
|
||||
|
||||
expose :workouts_by_year do
|
||||
workout_repo
|
||||
.list
|
||||
.group_by { |wo|
|
||||
wo.published_at.year
|
||||
}
|
||||
.sort
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user