|
@@ -1,8 +1,8 @@ |
|
|
module PostsHelper |
|
|
module PostsHelper |
|
|
def post_to_poi(post) |
|
|
|
|
|
|
|
|
def post_to_poi(post, subscription) |
|
|
# http://layar.com/documentation/browser/api/getpois-response/ |
|
|
# http://layar.com/documentation/browser/api/getpois-response/ |
|
|
{ |
|
|
{ |
|
|
:id => post._id, |
|
|
|
|
|
|
|
|
:id => post.id, |
|
|
:imageURL => "%s%s/assets/layar-icons/tal-logo-100.png" % [ request.protocol, request.env['HTTP_HOST'] ], |
|
|
:imageURL => "%s%s/assets/layar-icons/tal-logo-100.png" % [ request.protocol, request.env['HTTP_HOST'] ], |
|
|
:anchor => { |
|
|
:anchor => { |
|
|
:geolocation => { |
|
|
:geolocation => { |
|
@@ -23,8 +23,14 @@ module PostsHelper |
|
|
:contentType => "text/html", |
|
|
:contentType => "text/html", |
|
|
:method => "GET", |
|
|
:method => "GET", |
|
|
:activityType => 1 |
|
|
:activityType => 1 |
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
:object => { |
|
|
|
|
|
:contentType => "image/vnd.layar.generic", |
|
|
|
|
|
:url => subscription.icon_url, |
|
|
|
|
|
:reducedURL => subscription.icon_url, |
|
|
|
|
|
:size => 120 |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|