diff --git a/core/cc.py b/core/cc.py index 3b800996..86d5a69f 100644 --- a/core/cc.py +++ b/core/cc.py @@ -41,23 +41,23 @@ class CCLicense(): @staticmethod def badge(license): if license == 'PD-US': - return 'https://i.creativecommons.org/p/mark/1.0/88x31.png' + return '/static/images/pdmark.png' elif license == 'CC0': - return 'https://i.creativecommons.org/p/zero/1.0/88x31.png' + return '/static/images/cc0.png' elif license == 'CC BY': - return 'https://i.creativecommons.org/l/by/3.0/88x31.png' + return '/static/images/ccby.png' elif license == 'CC BY-NC-ND': - return 'https://i.creativecommons.org/l/by-nc-nd/3.0/88x31.png' + return '/static/images/ccbyncnd.png' elif license == 'CC BY-NC-SA': - return 'https://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png' + return '/static/images/ccbyncsa.png' elif license == 'CC BY-NC': - return 'https://i.creativecommons.org/l/by-nc/3.0/88x31.png' + return '/static/images/ccbync.png' elif license == 'CC BY-SA': - return 'https://i.creativecommons.org/l/by-sa/3.0/88x31.png' + return '/static/images/ccbysa.png' elif license == 'CC BY-ND': - return 'https://i.creativecommons.org/l/by-nd/3.0/88x31.png' + return '/static/images/ccbynd.png' elif license == 'GFDL': - return 'https://www.gnu.org/graphics/gfdl-logo-tiny.png' + return '/static/images/gdfl.png' else: return '' diff --git a/core/tests.py b/core/tests.py index d96af21b..55611e27 100755 --- a/core/tests.py +++ b/core/tests.py @@ -486,7 +486,7 @@ class CampaignTests(TestCase): c.license = 'CC BY-NC' c.save() self.assertEqual(c.license_url, 'http://creativecommons.org/licenses/by-nc/3.0/') - self.assertEqual(c.license_badge, 'https://i.creativecommons.org/l/by-nc/3.0/88x31.png') + self.assertEqual(c.license_badge, '/static/images/ccbync.png') def test_campaign_status(self): diff --git a/static/images/cc0.png b/static/images/cc0.png new file mode 100644 index 00000000..59f27f30 Binary files /dev/null and b/static/images/cc0.png differ diff --git a/static/images/ccby.png b/static/images/ccby.png new file mode 100644 index 00000000..822491ed Binary files /dev/null and b/static/images/ccby.png differ diff --git a/static/images/ccbync.png b/static/images/ccbync.png new file mode 100644 index 00000000..5f982147 Binary files /dev/null and b/static/images/ccbync.png differ diff --git a/static/images/ccbyncnd.png b/static/images/ccbyncnd.png new file mode 100644 index 00000000..49f272f8 Binary files /dev/null and b/static/images/ccbyncnd.png differ diff --git a/static/images/ccbyncsa.png b/static/images/ccbyncsa.png new file mode 100644 index 00000000..0f2a0f10 Binary files /dev/null and b/static/images/ccbyncsa.png differ diff --git a/static/images/ccbynd.png b/static/images/ccbynd.png new file mode 100644 index 00000000..8f317035 Binary files /dev/null and b/static/images/ccbynd.png differ diff --git a/static/images/ccbysa.png b/static/images/ccbysa.png new file mode 100644 index 00000000..f0a944e0 Binary files /dev/null and b/static/images/ccbysa.png differ diff --git a/static/images/gfdl.png b/static/images/gfdl.png new file mode 100644 index 00000000..b43479bf Binary files /dev/null and b/static/images/gfdl.png differ diff --git a/static/images/pdmark.png b/static/images/pdmark.png new file mode 100644 index 00000000..f1eafe1d Binary files /dev/null and b/static/images/pdmark.png differ