Beispiel #1
0
 def image(self, obj: Meem):
     return ahref(obj.url, htmlimg(obj.url, mw=600, mh=400))
Beispiel #2
0
 def twitter_url(self, obj: TwitterMeem):
     return ahref('https://twitter.com/statuses/' + obj.post, 'See post',
                  True)
Beispiel #3
0
 def facebook_url(self, obj: FacebookMeem):
     return ahref('https://facebook.com/' + obj.post, 'See post', True)
Beispiel #4
0
 def preview_url(self, obj: MemeTemplate):
     return ahref(obj.preview_url, 'Go', True)
Beispiel #5
0
 def image(self, obj: MemeTemplate):
     return mark_safe(
         ahref(obj.image_url, htmlimg(obj.image_url, mw=600, mh=400)) +
         " " +
         ahref(obj.bgimage_url, htmlimg(obj.bgimage_url, mw=600, mh=400)))
Beispiel #6
0
 def image(self, obj: MemeSourceImage):
     return ahref(obj.image_url, htmlimg(obj.image_url, mw=600, mh=400))