Add podcasts and map view

This commit is contained in:
2023-06-18 15:53:49 +10:00
parent 85dd61510e
commit 0cf6d0d540
17 changed files with 2558 additions and 24 deletions

View File

@@ -0,0 +1,18 @@
module Adamantium
module Views
module Places
class MapPage < Adamantium::View
include Deps["repos.post_repo"]
config.layout = "map"
expose :places do
post_repo.places_listing.map do |post|
p = Decorators::Posts::Decorator.new(post)
[p.lon, p.lat]
end
end
end
end
end
end

View File

@@ -0,0 +1,13 @@
module Adamantium
module Views
module Podcasts
class Index < View
include Deps["repos.podcast_repo"]
expose :podcasts do
podcast_repo.listing
end
end
end
end
end