Add workouts

This commit is contained in:
2023-04-25 15:56:41 +10:00
parent 971e0007dd
commit c89b5b0998
13 changed files with 197 additions and 0 deletions

View 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