Ejemplo n.º 1
0
 def item_description(self, post):
     url = 'http%s://%s%s' % ('s' if self._request.is_secure() else '',
                              self._request.get_host(),
                              post.get_absolute_url())
     header = wide_buttons(self._request, post.title, post.get_absolute_url())
     footer = narrow_buttons(self._request, post.title, post.get_absolute_url())
     footer += '<p><a href="%s#disqus_thread">Leave a comment</a></p>' % url
     return header + post.rendered_content + footer
Ejemplo n.º 2
0
 def item_description(self, post):
     url = 'http%s://%s%s' % ('s' if self._request.is_secure() else '',
                              self._request.get_host(),
                              post.get_absolute_url())
     header = wide_buttons(self._request, post.title, post.get_absolute_url())
     footer = narrow_buttons(self._request, post.title, post.get_absolute_url())
     footer += '<p><a href="%s#disqus_thread">Leave a comment</a></p>' % url
     return header + post.rendered_content + footer