def get_logo_html(self, scale=1.0): if logos.has_logo(self.logo): width = int(round(32.0 * scale)) height = int(round(32.0 * scale)) html = ('<img src="{}" width="{}" height="{}">') return Markup(html.format(logos.get_logo_img(self.logo), width, height)) else: return ''
def get_logo_html(self, scale=1.0): if logos.has_logo(self.logo): width = int(round(32.0 * scale)) height = int(round(32.0 * scale)) html = ('<img src="{}" width="{}" height="{}">') return Markup( html.format(logos.get_logo_img(self.logo), width, height)) else: #app.logger.info("Looked for {} but found nothing.".format(self.logo)) return ''