maidstone-hackspace/website/widgets/google_hangout.py

14 lines
526 B
Python

from scaffold.core.widget import base_widget
class control(base_widget):
def create(self, appid):
self.appid = appid
return self
def render(self):
htm = '<a href="https://plus.google.com/hangouts?gid=%s" style="text-decoration:none;">' % self.appid
htm += ' <img src="https://ssl.gstatic.com/s2/oz/images/stars/hangout/1/gplus-hangout-60x230-normal.png"'
htm += ' alt="Start a Hangout" style="border:0;width:230px;height:60px;"/>'
htm += '</a>'
return htm