diff --git a/app/decorators/posts/decorator.rb b/app/decorators/posts/decorator.rb index 1aefcc6..e2e2cb4 100644 --- a/app/decorators/posts/decorator.rb +++ b/app/decorators/posts/decorator.rb @@ -71,6 +71,10 @@ module Adamantium "https://api.mapbox.com/styles/v1/dnitza/cleb2o734000k01pbifls5620/static/pin-s+555555(#{lon},#{lat})/#{lon},#{lat},14,0/620x310@2x?access_token=pk.eyJ1IjoiZG5pdHphIiwiYSI6ImNsZWIzOHFmazBkODIzdm9kZHgxdDF4ajQifQ.mSneE-1SKeju8AOz5gp4BQ" end + def template_type + :post + end + private # e.g. geo:-37.75188,144.90417;u=35 diff --git a/app/repos/post_repo.rb b/app/repos/post_repo.rb index a254039..b32fc20 100644 --- a/app/repos/post_repo.rb +++ b/app/repos/post_repo.rb @@ -76,7 +76,6 @@ module Adamantium def places_listing(limit: nil) posts .where(post_type: "checkin") - .exclude(location: nil) .published .combine(:tags) .order(Sequel.desc(:published_at)) diff --git a/app/templates/tags/show.html.slim b/app/templates/tags/show.html.slim index 5daf41e..e007dea 100644 --- a/app/templates/tags/show.html.slim +++ b/app/templates/tags/show.html.slim @@ -3,6 +3,6 @@ div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark: div class="mb-12 max-w-prose mx-auto" - posts.each do |post| - == render post.post_type.to_sym, post.post_type.to_sym => post + == render post.template_type.to_sym, post.template_type.to_sym => post div class="max-w-screen-md mx-auto border-t-4 border-solid border-gray-400 dark:border-gray-600"