Commit 22a19232 authored by Michal Čihař's avatar Michal Čihař

Always use https for shields.io

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent bf3aac20
......@@ -350,11 +350,6 @@ class ShieldsBadgeWidget(Widget):
order = 80
def redirect(self):
if ENABLE_HTTPS:
proto = 'https'
else:
proto = 'http'
if self.percent > 90:
color = 'brightgreen'
elif self.percent > 75:
......@@ -362,8 +357,7 @@ class ShieldsBadgeWidget(Widget):
else:
color = 'red'
return '{0}://img.shields.io/badge/{1}-{2}-{3}.svg'.format(
proto,
return 'https://img.shields.io/badge/{0}-{1}-{2}.svg'.format(
quote(_('translated').encode('utf-8')),
'{0}%25'.format(int(self.percent)),
color
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment