Add podcasts and map view
This commit is contained in:
18
app/views/places/map_page.rb
Normal file
18
app/views/places/map_page.rb
Normal 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
|
13
app/views/podcasts/index.rb
Normal file
13
app/views/podcasts/index.rb
Normal 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
|
Reference in New Issue
Block a user