diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-05-08 00:16:22 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-05-08 00:16:22 +0200 |
commit | 696fa419d598abea388effb4d8898f38a93a17d6 (patch) | |
tree | 8d8bc95d9a885e29afe351c6fbd5226202a8173e | |
parent | 65fe8956f0226419e877fa8e631defe58bd410f0 (diff) | |
download | Chimère - projet de référence-696fa419d598abea388effb4d8898f38a93a17d6.tar.bz2 Chimère - projet de référence-696fa419d598abea388effb4d8898f38a93a17d6.zip |
Fix share icons
-rw-r--r-- | settings.py | 26 | ||||
-rw-r--r-- | static/icons/email.png | bin | 735 -> 0 bytes | |||
-rw-r--r-- | static/icons/facebook.png | bin | 731 -> 0 bytes | |||
-rw-r--r-- | static/icons/identica.png | bin | 1373 -> 0 bytes | |||
-rw-r--r-- | static/icons/twitter.png | bin | 924 -> 0 bytes |
5 files changed, 14 insertions, 12 deletions
diff --git a/settings.py b/settings.py index 43c0b40..9b20a11 100644 --- a/settings.py +++ b/settings.py @@ -128,18 +128,6 @@ MEDIA_ROOT = ROOT_PATH + 'media/' # Example: "http://media.lawrence.com" MEDIA_URL = '/' + EXTRA_URL + 'media/' -# share with -SHARE_NETWORKS = ( -("Email", 'mailto:?subject=%(text)s&body=%(url)s', - STATIC_URL + 'icons/email.png'), -("Facebook", 'http://www.facebook.com/sharer.php?t=%(text)s&u=%(url)s', - STATIC_URL + 'icons/facebook.png'), -("Twitter", 'http://twitter.com/home?status=%(text)s %(url)s', - STATIC_URL + 'icons/twitter.png'), -("Identi.ca", 'http://identi.ca/index.php?action=newnotice&status_textarea=%(text)s %(url)s', - STATIC_URL + 'icons/identica.png'), -) - # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. # Examples: "http://foo.com/media/", "/media/". @@ -248,3 +236,17 @@ try: except ImportError, e: print 'Unable to load local_settings.py:', e +if 'SHARE_NETWORKS' not in globals(): + # after the locals to get the right STATIC_URL + + # share with + SHARE_NETWORKS = ( + ("Email", 'mailto:?subject=%(text)s&body=%(url)s', + STATIC_URL + 'chimere/img/email.png'), + ("Facebook", 'http://www.facebook.com/sharer.php?t=%(text)s&u=%(url)s', + STATIC_URL + 'chimere/img/facebook.png'), + ("Twitter", 'http://twitter.com/home?status=%(text)s %(url)s', + STATIC_URL + 'chimere/img/twitter.png'), + ("Identi.ca", 'http://identi.ca/index.php?action=newnotice&status_textarea=%(text)s %(url)s', + STATIC_URL + 'chimere/img/identica.png'), + ) diff --git a/static/icons/email.png b/static/icons/email.png Binary files differdeleted file mode 100644 index 1a0a014..0000000 --- a/static/icons/email.png +++ /dev/null diff --git a/static/icons/facebook.png b/static/icons/facebook.png Binary files differdeleted file mode 100644 index 8036b19..0000000 --- a/static/icons/facebook.png +++ /dev/null diff --git a/static/icons/identica.png b/static/icons/identica.png Binary files differdeleted file mode 100644 index a9625d1..0000000 --- a/static/icons/identica.png +++ /dev/null diff --git a/static/icons/twitter.png b/static/icons/twitter.png Binary files differdeleted file mode 100644 index 295767a..0000000 --- a/static/icons/twitter.png +++ /dev/null |