Skip to content

Commit

Permalink
[#196] add FB app id to meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
stellanl committed Sep 30, 2013
1 parent 6225302 commit 69b6951
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion akvo/rsr/views_partner_sites/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def get_context_data(self, **kwargs):
'updates': updates,
'updates_with_images': updates_with_images,
'can_add_update': privileged_user,
'draft': draft
'draft': draft,
'fb_app_id': getattr(settings, 'FB_APP_ID', ''),
})
return context

Expand Down
3 changes: 3 additions & 0 deletions akvo/settings/20-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ USE_L10N = True
# Piwik settings
PIWIK_URL = 'http://analytics.akvo.org/'
PIWIK_SITE_ID = 1

#Social media settings
FB_APP_ID = 188270094690212
1 change: 1 addition & 0 deletions akvo/templates/partner_sites/project/project_main.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
{% else %}
<meta property="og:image" content="http://{{request.META.HTTP_HOST}}{{MEDIA_URL}}core/img/Akvo_RGB_tagline2_logo_square.png"/>
{% endif %}
<meta property="og:app_id" content="{{fb_app_id}}"/>

{% comment %}
<style type="text/css">
Expand Down
2 changes: 2 additions & 0 deletions akvo/templates/partner_sites/project/update_main.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
{% else %}
<meta property="og:image" content="http://{{request.META.HTTP_HOST}}{{MEDIA_URL}}{{project.current_image}}"/>
{% endif %}
<meta property="og:app_id" content="{{fb_app_id}}"/>

{% endblock head %}

{% block breadcrum_items %}
Expand Down

0 comments on commit 69b6951

Please sign in to comment.