Fix tags index page
This commit is contained in:
@@ -18,6 +18,10 @@ module Adamantium
|
|||||||
!syndication_sources.empty?
|
!syndication_sources.empty?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def template_type
|
||||||
|
:bookmark
|
||||||
|
end
|
||||||
|
|
||||||
def syndicated_to
|
def syndicated_to
|
||||||
syndication_sources.map do |source, url|
|
syndication_sources.map do |source, url|
|
||||||
{
|
{
|
||||||
|
@@ -9,7 +9,9 @@ module Adamantium
|
|||||||
|
|
||||||
expose :posts do |slug:|
|
expose :posts do |slug:|
|
||||||
post_tag_repo.posts_tagged(tag: slug).map do |post|
|
post_tag_repo.posts_tagged(tag: slug).map do |post|
|
||||||
Decorators::Posts::Decorator.new(post)
|
post.url ?
|
||||||
|
Decorators::Bookmarks::Decorator.new(post) :
|
||||||
|
Decorators::Posts::Decorator.new(post)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
0
lib/adamantium/middleware/basic_auth.rb
Normal file
0
lib/adamantium/middleware/basic_auth.rb
Normal file
Reference in New Issue
Block a user